]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ext4: drop redundant calls ext4_fc_track_range
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Fri, 6 Nov 2020 03:58:52 +0000 (19:58 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 7 Nov 2020 04:01:02 +0000 (23:01 -0500)
commit5b552ad70c6197e764ffe6070089c5b355fe2d26
treef9ea129b768abe037648caff5eed1d032aab6412
parentb21ebf143af219207214c79bc217beb39c43212a
ext4: drop redundant calls ext4_fc_track_range

ext4_fc_track_range() should only be called when blocks are added or
removed from an inode. So, the only places from where we need to call
this function are ext4_map_blocks(), punch hole, collapse / zero
range, truncate. Remove all the other redundant calls to ths function.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20201106035911.1942128-4-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c
fs/ext4/super.c