]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: Document an edge case for overwrites
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Thu, 15 May 2025 19:50:49 +0000 (01:20 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 May 2025 14:31:12 +0000 (10:31 -0400)
commit9fa6121684dad974c8c2b2aceb0df2b27f0627fe
tree99ecdfe93a6985167c7e63775c9a6144ea29783b
parentfff6f35b9b2f0c79c9eb6106311530864d8f1394
ext4: Document an edge case for overwrites

ext4_iomap_overwrite_begin() clears the flag for IOMAP_WRITE before
calling ext4_iomap_begin(). Document this above ext4_map_blocks() call
as it is easy to miss it when focusing on write paths alone.

Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://patch.msgid.link/fd50ba05440042dff77d555e463a620a79f8d0e9.1747337952.git.ritesh.list@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c