Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3544669pxv; Mon, 26 Jul 2021 06:33:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcCctq5EH+aYvtUFG9ZBUl+AGGxJEZSX2fejPkxxhUI8My+M4O1RU2lPkp2YNh6NtTsGpt X-Received: by 2002:aa7:dd8d:: with SMTP id g13mr21644730edv.336.1627306427859; Mon, 26 Jul 2021 06:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627306427; cv=none; d=google.com; s=arc-20160816; b=vdc0QmQy6A5rZVIGia3CfKw4k4P8nrq5WcqbWrlahdXbN6REecttP0sMzEhfZwGs/z Sq8g/Q9S9NUkYdqVTp5RU3085QfankO7hHqs9+hcLUr4QZHTAYPLFkucRgivGB2cu0mS BDp6vzY7VwgcbwAlUm9H4cHNOON8vwV9eGyYLveS/xfn7AyOVlv9T8489g8ZgUU4ZXHP 5tWBTTOTcchuFhRc6q6/myt1RDO44TWz9+hKuibVLiL0RAIRleOOoNiLbBsu3MBtu/L9 KTj+fOnuDoYA6cetrMOuTi0x1u1YbycEUFM1rNUev+C9Dzyf7XDMQjRlgf6ts2akGWpJ 05gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=k5UcEjJxBMV/bkLye4nV+hqaWSEY92/oNqvr5MMGiU8=; b=m57+1QrxMj2it0JgVrvGCxzOTjTy8pdIcXnuXpf3G5kVXZoT7GzJqIKIuqY2bhe52R oKG0JYUd9c+R0cDCechwgbpICSr9ZtPzVXH7TH48V4d06EId11RzTZ9HyOZ5hwxuPLGd ZlmOOpfqCAeRH8dYtMkjbcE/fWYJ624ZyzrskWIdljRSECzUPwR8Q0gmrdN3aEFiClHs JpjlLzfqYQA3FFwvCGPEbQ/vjLUa1RreGAEg2uIwPVd3j1Q0I+06GGxCagvm6y35N0Ij xc+txRBmbGe4QXaNSxV8JQlP7G3HPm7y5kakrMugGVqm7pb2th6BslY4Hp30kijijysZ jtRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=RedvTher; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=PFrzuyYE; 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 t19si15776613eji.162.2021.07.26.06.33.22; Mon, 26 Jul 2021 06:33:47 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=RedvTher; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=PFrzuyYE; 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 S233408AbhGZMwi (ORCPT + 99 others); Mon, 26 Jul 2021 08:52:38 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:41124 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbhGZMwi (ORCPT ); Mon, 26 Jul 2021 08:52:38 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 400AC1FE8D; Mon, 26 Jul 2021 13:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1627306386; 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=k5UcEjJxBMV/bkLye4nV+hqaWSEY92/oNqvr5MMGiU8=; b=RedvTherUATMd7Vt0N4o3h1uqsZ3NaN4CCWCgxVJV3eLumuT4Akj2wAmZBgiQlUl4kGKi4 wBGPYS4o4uE5Xw+Zi8vrGoWDHrWWUZ5VDbHu34rdM0afbFuiVAIlMsZSJ0O6Yvb78TReSg JbFNueofdDpxrygGq4kfP5DrKinYcjs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1627306386; 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=k5UcEjJxBMV/bkLye4nV+hqaWSEY92/oNqvr5MMGiU8=; b=PFrzuyYE1rqEiF/ZEUPnK2NXuLnDPDYO7ho1/sb55h0enK4mj/BTWGw45L8ZZ9TjjOtmL+ 4hNnAxsnfKJBPtDw== Received: from quack2.suse.cz (unknown [10.100.200.198]) by relay2.suse.de (Postfix) with ESMTP id 3324CA3B8B; Mon, 26 Jul 2021 13:33:06 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 1198F1E3B13; Mon, 26 Jul 2021 15:33:06 +0200 (CEST) Date: Mon, 26 Jul 2021 15:33:06 +0200 From: Jan Kara To: Christoph Hellwig Cc: Jan Kara , Mikulas Patocka , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 1/4] ext2: make ext2_iomap_ops available unconditionally Message-ID: <20210726133306.GD20621@quack2.suse.cz> References: <20210720133341.405438-1-hch@lst.de> <20210720133341.405438-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210720133341.405438-2-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue 20-07-21 15:33:38, Christoph Hellwig wrote: > ext2_iomap_ops will be used for the FIEMAP support going forward, > so make it available unconditionally. > > Signed-off-by: Christoph Hellwig Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/ext2/inode.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c > index dadb121beb22..3e9a04770f49 100644 > --- a/fs/ext2/inode.c > +++ b/fs/ext2/inode.c > @@ -799,7 +799,6 @@ int ext2_get_block(struct inode *inode, sector_t iblock, > > } > > -#ifdef CONFIG_FS_DAX > static int ext2_iomap_begin(struct inode *inode, loff_t offset, loff_t length, > unsigned flags, struct iomap *iomap, struct iomap *srcmap) > { > @@ -852,10 +851,6 @@ const struct iomap_ops ext2_iomap_ops = { > .iomap_begin = ext2_iomap_begin, > .iomap_end = ext2_iomap_end, > }; > -#else > -/* Define empty ops for !CONFIG_FS_DAX case to avoid ugly ifdefs */ > -const struct iomap_ops ext2_iomap_ops; > -#endif /* CONFIG_FS_DAX */ > > int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, > u64 start, u64 len) > -- > 2.30.2 > -- Jan Kara SUSE Labs, CR