]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove extent cache entries when truncating inline data
authorEric Whitney <enwlinux@gmail.com>
Thu, 19 Aug 2021 14:49:26 +0000 (10:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 9 Sep 2021 14:52:05 +0000 (10:52 -0400)
commit1b813d0be72fb2eee999611bfc20abf638e03aa7
tree4d36386dec72cbe52414480765be8fc412d2c301
parentadfcf101fd0469433c2bad4ffbadc64ee6aa7c07
ext4: remove extent cache entries when truncating inline data

Conditionally remove all cached extents belonging to an inode
when truncating its inline data.  It's only necessary to attempt to
remove cached extents when a conversion from inline to extent storage
has been initiated (!EXT4_STATE_MAY_INLINE_DATA).  This avoids
unnecessary es lock overhead in the more common inline case.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20210819144927.25163-2-enwlinux@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inline.c