ext4: make ext4_da_reserve_space() reserve multi-clusters
authorZhang Yi <yi.zhang@huawei.com>
Fri, 17 May 2024 12:40:02 +0000 (20:40 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 27 Jun 2024 22:04:50 +0000 (18:04 -0400)
commit0d66b23d79c750276f791411d81a524549a64852
treef47593fe41ec03665b9eb791b1afdcd51eea9f7d
parent12eba993b94c9186e44a01f46e38b3ab3c635f2d
ext4: make ext4_da_reserve_space() reserve multi-clusters

Add 'nr_resv' parameter to ext4_da_reserve_space(), which indicates the
number of clusters wants to reserve, make it reserve multiple clusters
at a time.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20240517124005.347221-8-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c
include/trace/events/ext4.h