Thread (38 messages) 38 messages, 7 authors, 2023-07-06

Re: [PATCH 01/13] iomap: update ki_pos a little later in iomap_dio_complete

From: Damien Le Moal <dlemoal@kernel.org>
Date: 2023-05-21 23:41:11
Also in: ceph-devel, linux-ext4, linux-f2fs-devel, linux-fsdevel, linux-mm, linux-nfs, linux-xfs

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@lst.de>
Looks OK to me.

Reviewed-by: Damien Le Moal <dlemoal@kernel.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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help