ext4: factor out ext4_do_fallocate()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 20 Dec 2024 01:16:35 +0000 (09:16 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Feb 2025 12:48:25 +0000 (07:48 -0500)
commitfd2f764826df5489b849a8937b5a093aae5b1816
treee94762bffb3075be793db1eaaf17feaa529e5259
parent49425504376c335c68f7be54ae7c32312afd9475
ext4: factor out ext4_do_fallocate()

Now the real job of normal fallocate are open coded in ext4_fallocate(),
factor out a new helper ext4_do_fallocate() to do the real job, like
others functions (e.g. ext4_zero_range()) in ext4_fallocate() do, this
can make the code more clear, no functional changes.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://patch.msgid.link/20241220011637.1157197-9-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c