]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: Check if inode uses extents in ext4_inode_can_atomic_write()
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Thu, 15 May 2025 19:50:50 +0000 (01:20 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 May 2025 14:31:12 +0000 (10:31 -0400)
commit1c972b1d13dde34c9897d991283e2c54209b44e9
treef22e562208dfb6a69ffaf31e1ab96574a13485c5
parent9fa6121684dad974c8c2b2aceb0df2b27f0627fe
ext4: Check if inode uses extents in ext4_inode_can_atomic_write()

EXT4 only supports doing atomic write on inodes which uses extents, so
add a check in ext4_inode_can_atomic_write() which gets called during
open.

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/86bb502c979398a736ab371d8f35f6866a477f6c.1747337952.git.ritesh.list@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h