Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp268440ybr; Fri, 22 May 2020 06:16:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDrZvsIlXbJepnYhWqDW1jWpxDEbBJ3LEWYczMvYsAebiFPQLphJ4SXbAcgVb6h9SeOWk7 X-Received: by 2002:a17:906:f8d6:: with SMTP id lh22mr8135240ejb.132.1590153409044; Fri, 22 May 2020 06:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590153409; cv=none; d=google.com; s=arc-20160816; b=E0+9sBMwRxgrTcE+QLLLMDeFx09ZIvYOe7vqMdjB4FJEd/9EBaxJAQxcbL6SuhBr6c 2p4mL+FedH7e6E3imhnCP43ioQNGaC6BqVS4QUmQ9XN8iS2U7IKkQh2LeeUbYwzUGqF8 kupyfUzhrf5lUv4tp0KcvriTsPhJu8+ExmIY3iMm8N7+fTlmhGf3yImXo41EAIXpFV6+ hXPukf7PzBOD4028MlK4RCndSuGxnASZQAjH3t12KYPkDtuieHrBvLAgXx1/ce+YcPT/ WvCaMOSMwxcl3KZgdX5RGJkrO8UFZxceTHBs8bjORtLmyaF8GZmSVH+aYHo8ecxgqHzC aA7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lx/FQHoG7vus26riBfTFt14skFazpOtouF7rvHtv4iw=; b=utuRf8iilL4OfLMxzc8iGSI0pyfElBMofs9t/bCeX7ZmTx2gtgeyHiFTJQF+ZQSUaI qnDiYmaMiV5KtLfDC2ZHmSEbnlvz3R7ZfOSlUvmNl+gAD02qke0JZp0Ohw6FUGrsczyR SwAz/l6qvr6+kXialGUkH8FH7LNceie+g/0jLNEEkVrLxqH3lKFlMT4dgIGXfkUs6HwD iUDNc2alshsnlgSsGQOyPrx6HaxcJ0ps5ob9A0Bg7R5tvHkjec2zNMvPVxBBoWCy2kN4 41GyU8UUayBAzitqmyeedesRRJJN1JIOi/CVFFULr72c6d7z6ykNwm1PBwxWZmjgq7d+ OLRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si4801883ejx.387.2020.05.22.06.15.50; Fri, 22 May 2020 06:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729344AbgEVNLu (ORCPT + 99 others); Fri, 22 May 2020 09:11:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:45980 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729334AbgEVNLu (ORCPT ); Fri, 22 May 2020 09:11:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 46063ABEC; Fri, 22 May 2020 13:11:48 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 10D261E126B; Fri, 22 May 2020 15:11:45 +0200 (CEST) Date: Fri, 22 May 2020 15:11:45 +0200 From: Jan Kara To: Chengguang Xu Cc: jack@suse.com, linux-ext4@vger.kernel.org Subject: Re: [PATCH 1/2] ext2: fix incorrect i_op for special inode Message-ID: <20200522131145.GD14199@quack2.suse.cz> References: <20200522044035.24190-1-cgxu519@mykernel.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200522044035.24190-1-cgxu519@mykernel.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri 22-05-20 12:40:34, Chengguang Xu wrote: > We should always set &ext2_special_inode_operations to i_op > for special inode regardless of CONFIG_EXT2_FS_XATTR setting. > > Signed-off-by: Chengguang Xu Thanks. I've applied both patches. I've just slightly expanded changelog of this patch to better explain the implications of the change. Honza > --- > fs/ext2/namei.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c > index ccfbbf59e2fc..1a5421a34ef7 100644 > --- a/fs/ext2/namei.c > +++ b/fs/ext2/namei.c > @@ -136,9 +136,7 @@ static int ext2_mknod (struct inode * dir, struct dentry *dentry, umode_t mode, > err = PTR_ERR(inode); > if (!IS_ERR(inode)) { > init_special_inode(inode, inode->i_mode, rdev); > -#ifdef CONFIG_EXT2_FS_XATTR > inode->i_op = &ext2_special_inode_operations; > -#endif > mark_inode_dirty(inode); > err = ext2_add_nondir(dentry, inode); > } > -- > 2.20.1 > > -- Jan Kara SUSE Labs, CR