summaryrefslogtreecommitdiff
path: root/fs/gfs2/aops.c
diff options
context:
space:
mode:
authorEric Whitney <enwlinux@gmail.com>2021-08-19 10:49:26 -0400
committerTheodore Ts'o <tytso@mit.edu>2021-09-09 10:52:05 -0400
commit0add491df4e5e2c8cc6eeeaa6dbcca50f932090c (patch)
tree4d36386dec72cbe52414480765be8fc412d2c301 /fs/gfs2/aops.c
parent11ef08c9eb52a808b8903004cba0733df6902a43 (diff)
downloadlinux-0add491df4e5e2c8cc6eeeaa6dbcca50f932090c.tar.gz
linux-0add491df4e5e2c8cc6eeeaa6dbcca50f932090c.tar.bz2
linux-0add491df4e5e2c8cc6eeeaa6dbcca50f932090c.zip
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>
Diffstat (limited to 'fs/gfs2/aops.c')
0 files changed, 0 insertions, 0 deletions