summaryrefslogtreecommitdiffstats
path: root/fs/ext4/fsmap.h
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2023-09-29 00:04:00 +0800
committerTheodore Ts'o <tytso@mit.edu>2023-10-05 22:32:15 -0400
commit2f94711b098bc55285ac74aba2f2b83fd72b555f (patch)
tree29d184b598bc564f163c530809d81c9d46078fb6 /fs/ext4/fsmap.h
parentc431d3867e0a8258d1948408eb8297cdd2400e67 (diff)
downloadlinux-2f94711b098bc55285ac74aba2f2b83fd72b555f.tar.gz
linux-2f94711b098bc55285ac74aba2f2b83fd72b555f.tar.bz2
linux-2f94711b098bc55285ac74aba2f2b83fd72b555f.zip
ext4: call ext4_mb_mark_context in ext4_mb_mark_diskspace_used
Call ext4_mb_mark_context in ext4_mb_mark_diskspace_used to: 1. Remove repeat code to normally update bitmap and group descriptor on disk. 2. Now that we have a common API for marking blocks inuse/free in block bitmap, use that instead of open coding it in function ext4_mb_mark_diskspace_used(). The current code was not updating checksum and other counters. ext4_mb_mark_context() should fix these consistency problems. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com> Link: https://lore.kernel.org/r/20230928160407.142069-6-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/fsmap.h')
0 files changed, 0 insertions, 0 deletions