Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7317944rwb; Tue, 6 Dec 2022 04:20:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CTDqm32BLRlUinEWtZ1JAXgey4yUj1DT92oh3Lif1CzYLD5UbMBG29TLZ0SGyGinEvWGL X-Received: by 2002:a17:906:1cda:b0:7c0:b9cc:2a60 with SMTP id i26-20020a1709061cda00b007c0b9cc2a60mr16995074ejh.362.1670329247255; Tue, 06 Dec 2022 04:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670329247; cv=none; d=google.com; s=arc-20160816; b=0V+kmc5S1uvotd9Js3hw3bMyQSRw8rmiMXat+J2caFvl8Tl22TMYSEEs2jA2wW91ZN AdatkMs4CmsSLWhnBvflN7s2JwrQtWSj3CoAPRd5dgvn1mpZJYZBohE4S3wkmUZDJeAS Hgai1R1U6ICMNiVucTjjyVHpwqJyBjnYMqga9UcaK9U6wf9DWz+gFrXrnuPZXKUCEuRV enToj7zn+9TsrBCojGvCmDh4RyQQYE4Ic5TqtKPxPNwdbuOxDpCsHgD5mo4mg5NCWOWw QLMB17AJmzwWsAuaFmK+ER/qmOC+EdBHuErM7tP9LJCvqix90+Cp55xkvPoLY/NPfw2y X2Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=0MdoAji2a6ESEr9wOlH0pwNx+hoaZ1RmIAjJL4Ub/Bo=; b=d0NcZE580X/W2o8fbHgVaIcOfTsindD0CfVsm5j7pBDO141fancXeBbFDJ6XK73ptN Aj6/lr4+fwNv/1J1UVqC/33GaUMvIsQ1Zh7nyr5HHHOSgw6vRgdi57QSfUeXOZ5QOWyY KqrTxLJpVli42zpk8tpwkHz8ON/JgbJT2nbKYmx8Jyhbz7LETW3ly1WdhJBpFd5Do2e1 ALWkoDRjonUbrdsQQAFT8fvBnU+DMzMshlXDCF34Qtl0ejnX5HdLGDXhR+49n52USu/g mTFy7GdlQwSs29qo69ate6XrRMMYnt5l5gpu7DyQ4gj+mD/KG6EHOzt+BL2Vnk2hc9TU TLtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=nPx8y8QB; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a170906a18b00b007adef1fc90fsi11007120ejy.304.2022.12.06.04.20.18; Tue, 06 Dec 2022 04:20:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=nPx8y8QB; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234804AbiLFMHo (ORCPT + 99 others); Tue, 6 Dec 2022 07:07:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234811AbiLFMHc (ORCPT ); Tue, 6 Dec 2022 07:07:32 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B8C410A4; Tue, 6 Dec 2022 04:07:29 -0800 (PST) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id F174C1FE5A; Tue, 6 Dec 2022 12:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1670328447; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0MdoAji2a6ESEr9wOlH0pwNx+hoaZ1RmIAjJL4Ub/Bo=; b=nPx8y8QBfODCsA4ZrT4OGwBf/ulZHedx8dFCnNVkrwCHuAuwdXqMGAe7V3TobArrlbw9dX 1sPYMqiQoRLjXyH19yMjmrVBuLPz6SNcAXtxrAlMLo/TwopKORmDG2TTOsA9PA5v0mAkkF L8aIIymFbOQYDmJrP3pkJ90KJD8AtVg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1670328447; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0MdoAji2a6ESEr9wOlH0pwNx+hoaZ1RmIAjJL4Ub/Bo=; b=9ENRE1W35SDZyjMRcfNzHAa4EXzB0ET94ix+aHuAuYB2KOMnvrwE684C2f9gD3Y6GY0S84 r/ZUsRajGcEam5Cg== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id E3D4B132F3; Tue, 6 Dec 2022 12:07:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 4sqdN38wj2NDXAAAGKfGzw (envelope-from ); Tue, 06 Dec 2022 12:07:27 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 77B85A0725; Tue, 6 Dec 2022 13:07:27 +0100 (CET) Date: Tue, 6 Dec 2022 13:07:27 +0100 From: Jan Kara To: Ye Bin Cc: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, jack@suse.cz, Ye Bin Subject: Re: [PATCH -next 5/6] ext4: rename xattr_find_entry() and __xattr_check_inode() Message-ID: <20221206120727.ak2txwu72zomtwxe@quack3> References: <20221206015806.3420321-1-yebin@huaweicloud.com> <20221206015806.3420321-6-yebin@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221206015806.3420321-6-yebin@huaweicloud.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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-ext4@vger.kernel.org On Tue 06-12-22 09:58:05, Ye Bin wrote: > From: Ye Bin > > xattr_find_entry() and __xattr_check_inode() is in EXT4 xattr module. so > add 'ext4' prefix to unify name style. > > Signed-off-by: Ye Bin Looks nice. Just one nit below: > @@ -1862,7 +1862,7 @@ ext4_xattr_block_find(struct inode *inode, struct ext4_xattr_info *i, > bs->s.first = BFIRST(bs->bh); > bs->s.end = bs->bh->b_data + bs->bh->b_size; > bs->s.here = bs->s.first; > - error = xattr_find_entry(inode, &bs->s.here, bs->s.end, > + error = ext4_xattr_find_entry(inode, &bs->s.here, bs->s.end, > i->name_index, i->name, 1); > if (error && error != -ENODATA) > return error; > @@ -2222,11 +2222,11 @@ int ext4_xattr_ibody_find(struct inode *inode, struct ext4_xattr_info *i, > is->s.here = is->s.first; > is->s.end = (void *)raw_inode + EXT4_SB(inode->i_sb)->s_inode_size; > if (ext4_test_inode_state(inode, EXT4_STATE_XATTR)) { > - error = xattr_check_inode(inode, header, is->s.end); > + error = ext4_xattr_check_inode(inode, header, is->s.end); > if (error) > return error; > /* Find the named attribute. */ > - error = xattr_find_entry(inode, &is->s.here, is->s.end, > + error = ext4_xattr_find_entry(inode, &is->s.here, is->s.end, > i->name_index, i->name, 0); > if (error && error != -ENODATA) > return error; The indentation of arguments in the above should be updated as well to look like: error = ext4_xattr_find_entry(inode, &is->s.here, is->s.end, i->name_index, i->name, 0); Honza -- Jan Kara SUSE Labs, CR