From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Le Moal Date: Mon, 22 May 2023 08:40:59 +0900 Subject: [Cluster-devel] [PATCH 01/13] iomap: update ki_pos a little later in iomap_dio_complete In-Reply-To: <20230519093521.133226-2-hch@lst.de> References: <20230519093521.133226-1-hch@lst.de> <20230519093521.133226-2-hch@lst.de> Message-ID: <3efbf8c7-b3ad-fbca-f37e-a7b2fd78320d@kernel.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 Looks OK to me. Reviewed-by: Damien Le Moal > + 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