[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3efbf8c7-b3ad-fbca-f37e-a7b2fd78320d@kernel.org>
Date: Mon, 22 May 2023 08:40:59 +0900
From: Damien Le Moal <dlemoal@...nel.org>
To: Christoph Hellwig <hch@....de>,
Matthew Wilcox <willy@...radead.org>
Cc: Jens Axboe <axboe@...nel.dk>, Xiubo Li <xiubli@...hat.com>,
Ilya Dryomov <idryomov@...il.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>,
Theodore Ts'o <tytso@....edu>,
Jaegeuk Kim <jaegeuk@...nel.org>, Chao Yu <chao@...nel.org>,
Miklos Szeredi <miklos@...redi.hu>,
Andreas Gruenbacher <agruenba@...hat.com>,
"Darrick J. Wong" <djwong@...nel.org>,
Trond Myklebust <trond.myklebust@...merspace.com>,
Anna Schumaker <anna@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-block@...r.kernel.org, ceph-devel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-ext4@...r.kernel.org,
"open list:F2FS FILE SYSTEM" <linux-f2fs-devel@...ts.sourceforge.net>,
cluster-devel@...hat.com, linux-xfs@...r.kernel.org,
linux-nfs@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH 01/13] iomap: update ki_pos a little later in
iomap_dio_complete
On 5/19/23 18:35, Christoph Hellwig wrote:
> Move the ki_pos update down a bit to prepare for a better common
> helper that invalidates pages based of an iocb.
>
> Signed-off-by: Christoph Hellwig <hch@....de>
Looks OK to me.
Reviewed-by: Damien Le Moal <dlemoal@...nel.org>
> + if (dio->flags & IOMAP_DIO_NEED_SYNC)
> + ret = generic_write_sync(iocb, ret);
> + if (ret > 0)
> + ret += dio->done_before;
> + }
> trace_iomap_dio_complete(iocb, dio->error, ret);
> kfree(dio);
> -
white line change. Personally, I like a blank line before returns to make them
stand out :)
> return ret;
> }
> EXPORT_SYMBOL_GPL(iomap_dio_complete);
--
Damien Le Moal
Western Digital Research
Powered by blists - more mailing lists