ext4: call ext4_mb_mark_context in ext4_free_blocks_simple
authorKemeng Shi <shikemeng@huaweicloud.com>
Thu, 28 Sep 2023 16:03:58 +0000 (00:03 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 6 Oct 2023 02:32:15 +0000 (22:32 -0400)
commit26d0f87b9fff37f9d4a04aa49f40b0d24502d2b1
treeb7cfb5d034b8957a70766a5f5354551dcd453116
parentf9e2d95a45321857bd0397aa07ae30cc20f0988f
ext4: call ext4_mb_mark_context in ext4_free_blocks_simple

call ext4_mb_mark_context in ext4_free_blocks_simple to:
1. remove repeat code
2. pair update of free_clusters in ext4_mb_new_blocks_simple.
3. add missing ext4_lock_group/ext4_unlock_group protection.

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-4-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c