Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1706404ybz; Thu, 23 Apr 2020 04:18:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJmxY+1pjXMYjXw/7DzvybC1KUxARj+XSQxzTIlL4HygP8WHFJksDVIyAqGdIGVM1irlw2L X-Received: by 2002:a05:6402:1d89:: with SMTP id dk9mr2200415edb.382.1587640689854; Thu, 23 Apr 2020 04:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587640689; cv=none; d=google.com; s=arc-20160816; b=ld4O6Jy6hC7ymETioMv0UtkU+HDBNJX91bbP/WXgFP4DR/ulJecbupMw/T/3/WEol9 2FpEVbncZRnsypZDKwoaJltSxFRwK+Tk7Fw7seAmV2Mj8Ssim72+XD7OA61hfoKivIvX 75bk4rycPV2wQzcj2nWIvV8lYGEqmqU6DYZI77wd8jk6BSxKGR4dYhL55zEO/RQRqUI7 aOZZ8aHxetj0xzkUe27CTly/RhrPiPT/L8B5fZCQ/XjHTCC+JyAisjfUzDzXY8jzPLy9 OWi7zK/uhIak4deH5qyrz8b0+uOnX73u2+s88izktl+qzgaXYV+KmxzmoqVj8goKLU/R t8KQ== 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=jAXACJZ2EVDENirPJB09XDUBjm2tM+qCHzaB6RJ3VbQ=; b=THq+fxoYRQqsij5cEUICiDd5TDQoVBdhW/I2cz9TmKv2FPW/eOgX3oGuE2bS/Dtlh8 X+YMCvIaT2bojJZDmEYO6iaXfjb4ANMMrmBH39IEINrwiSbb9AKcJBKCjWlq9bCwZSTF yMDlQgzWzhrYvA3Wov+QThgH32fobPbQp8btDY0pQaivYO4ZpoQ74ca90a17FsiqUMfo F7hFiYYMYXwoDd+rsaU/T/m1213z3SsTEH4wjZ1ZRm8H0LHo9XzCmDvwnH2dj/hpG8al y4Jf1teAEQEE6TzuKFWyqxigS5NV4WenIJ7wWVKxvpRd4Lso5GWVH2hNbHBThd/SCCIt Rn7w== 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 w7si935040edu.237.2020.04.23.04.17.46; Thu, 23 Apr 2020 04:18:09 -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 S1727911AbgDWLRD (ORCPT + 99 others); Thu, 23 Apr 2020 07:17:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:53494 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726805AbgDWLRD (ORCPT ); Thu, 23 Apr 2020 07:17:03 -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 25783B080; Thu, 23 Apr 2020 11:17:00 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 6DF871E1293; Thu, 23 Apr 2020 13:17:00 +0200 (CEST) Date: Thu, 23 Apr 2020 13:17:00 +0200 From: Jan Kara To: Ritesh Harjani Cc: linux-ext4@vger.kernel.org, jack@suse.cz, tytso@mit.edu, adilger@dilger.ca, darrick.wong@oracle.com, hch@infradead.org, Alexander Viro , Dan Carpenter , "Aneesh Kumar K . V" , Murphy Zhou , Miklos Szeredi , Amir Goldstein , linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org Subject: Re: [PATCH 2/5] ext4: Rename fiemap_check_ranges() to make it ext4 specific Message-ID: <20200423111700.GI3737@quack2.suse.cz> References: <64ab9d5449f6fb96bb8633f1a40cff14ddb5614e.1587555962.git.riteshh@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64ab9d5449f6fb96bb8633f1a40cff14ddb5614e.1587555962.git.riteshh@linux.ibm.com> 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 Thu 23-04-20 16:17:54, Ritesh Harjani wrote: > This renames the fiemap_check_ranges() copy of function > within ext4/ioctl.c to become ext4_fiemap_check_ranges(). > This is required so that we can finally get rid of this > duplicate version. > Since overlayfs anyways need to use this in it's > ovl_fiemap() function, so later patches make it > available for use by others via EXPORT_SYMBOL. > > Signed-off-by: Ritesh Harjani Looks good. You can add: Reviewed-by: Jan Kara Honza > --- > fs/ext4/ioctl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c > index bfc1281fc4cb..76a2b5200ba3 100644 > --- a/fs/ext4/ioctl.c > +++ b/fs/ext4/ioctl.c > @@ -734,7 +734,7 @@ static void ext4_fill_fsxattr(struct inode *inode, struct fsxattr *fa) > } > > /* copied from fs/ioctl.c */ > -static int fiemap_check_ranges(struct super_block *sb, > +static int ext4_fiemap_check_ranges(struct super_block *sb, > u64 start, u64 len, u64 *new_len) > { > u64 maxbytes = (u64) sb->s_maxbytes; > @@ -775,7 +775,7 @@ static int ext4_ioctl_get_es_cache(struct file *filp, unsigned long arg) > if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS) > return -EINVAL; > > - error = fiemap_check_ranges(sb, fiemap.fm_start, fiemap.fm_length, > + error = ext4_fiemap_check_ranges(sb, fiemap.fm_start, fiemap.fm_length, > &len); > if (error) > return error; > -- > 2.21.0 > -- Jan Kara SUSE Labs, CR