From patchwork Thu Mar 23 00:09:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingbo Xu X-Patchwork-Id: 73715 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2643624wrt; Wed, 22 Mar 2023 17:23:13 -0700 (PDT) X-Google-Smtp-Source: AK7set88dbtZ/qHnPPwTGpinCpim8/sQvE7Yv8jnbO2ug8c3261eJEjCbMjFpkCzEfiLOUH3THG5 X-Received: by 2002:a17:903:2943:b0:19e:2860:3ae8 with SMTP id li3-20020a170903294300b0019e28603ae8mr3666652plb.33.1679530992853; Wed, 22 Mar 2023 17:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679530992; cv=none; d=google.com; s=arc-20160816; b=o2YO/MSLar2CuqAwjLfmEnbQ0YDbV3EzmRsvo0xT2JR69sKLmc0yRGsq30mUW5jTAV +kjG7f5NKGeNPXJ08nlJgPP75b5MLo6TK1SwnEzkoAhkh/tkliqNGiyeICXzRZ+BWSJ8 Z96G6vs3z7dcoLqk11LUpJjNaG3oU5AB/G2G6bTv5KJg4zVE9K5rgciG5q7mnZJX74lu Z02AZuQrmYeQhZjBDFczIYszKOoDcnHLHSTxPpIHWefjOOv8mc84/7INGqfKFBs0zSm3 oW1CZiTjYkB3Z40GbAfFSlhdE/kPw+dkdiy9uJDFt/I2pKnOzpiFM+2aJU2G0Q7BKd59 9lhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=W2m30TaD4ocoOXX3JF9uQnTjY+rbnIvFp6A9p0/+H3w=; b=QvQfJWuzeFtyJA3TzI8xPcabOxrTln7eTt0vWXUddEzv3uw0xj2s3X0bdt6Jkc4xPW uWUO/ZR7tDVGN+m82a1Liwz6uUbxOgUk5j+LnBcmUYr+zmoB6Mh7DSs05EY0XcnRkY2v LyBryn/gquBsjSDEPxjiFW6fVvVwKxsx3H3PHkuiCG+d/h3mak+V9eIvPD1+fo8yRLll Y+v6CfqorG3ryUaawVR3bh5Fti8mRcEii+lAcfABwRWG6IiSgBnHcWsYWR3b3S9ODo+i mIPp2w4DGBsjgB/JTxLvbjzhioncrK73Ed8iDFmVMHmVl/w/gyC91WrXiMqld2RB+wIE hZLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf5-20020a170902fb4500b001945ff85d7asi15578684plb.357.2023.03.22.17.23.00; Wed, 22 Mar 2023 17:23:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbjCWAKq (ORCPT + 99 others); Wed, 22 Mar 2023 20:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbjCWAKd (ORCPT ); Wed, 22 Mar 2023 20:10:33 -0400 Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98C8231BD2 for ; Wed, 22 Mar 2023 17:10:02 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VeRymBp_1679530191; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VeRymBp_1679530191) by smtp.aliyun-inc.com; Thu, 23 Mar 2023 08:09:52 +0800 From: Jingbo Xu To: xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/8] erofs: rename init_inode_xattrs with erofs_ prefix Date: Thu, 23 Mar 2023 08:09:43 +0800 Message-Id: <20230323000949.57608-3-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20230323000949.57608-1-jefflexu@linux.alibaba.com> References: <20230323000949.57608-1-jefflexu@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761115890394644067?= X-GMAIL-MSGID: =?utf-8?q?1761115890394644067?= Rename init_inode_xattrs() to erofs_init_inode_xattrs() without logic change. Signed-off-by: Jingbo Xu Reviewed-by: Gao Xiang --- fs/erofs/xattr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/erofs/xattr.c b/fs/erofs/xattr.c index 760ec864a39c..ab4517e5ec84 100644 --- a/fs/erofs/xattr.c +++ b/fs/erofs/xattr.c @@ -29,7 +29,7 @@ struct xattr_iter { unsigned int ofs; }; -static int init_inode_xattrs(struct inode *inode) +static int erofs_init_inode_xattrs(struct inode *inode) { struct erofs_inode *const vi = EROFS_I(inode); struct xattr_iter it; @@ -404,7 +404,7 @@ static int erofs_getxattr(struct inode *inode, int index, const char *name, if (!name) return -EINVAL; - ret = init_inode_xattrs(inode); + ret = erofs_init_inode_xattrs(inode); if (ret) return ret; @@ -619,7 +619,7 @@ ssize_t erofs_listxattr(struct dentry *dentry, int ret; struct listxattr_iter it; - ret = init_inode_xattrs(d_inode(dentry)); + ret = erofs_init_inode_xattrs(d_inode(dentry)); if (ret == -ENOATTR) return 0; if (ret)