]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: remove PAGE_SIZE checks for rec_len conversion
authorBaokun Li <libaokun1@huawei.com>
Fri, 21 Nov 2025 09:06:33 +0000 (17:06 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 29 Nov 2025 03:35:26 +0000 (22:35 -0500)
commitafa6d5a16bf2e354e183a4fcbcdb8578798e9942
treefbea59b83af67af5735e1cd5e7b061d6e17bea3f
parentb73f45a32420a8393e92fb2dec3b7d109e565127
ext4: remove PAGE_SIZE checks for rec_len conversion

Previously, ext4_rec_len_(to|from)_disk only performed complex rec_len
conversions when PAGE_SIZE >= 65536 to reduce complexity.

However, we are soon to support file system block sizes greater than
page size, which makes these conditional checks unnecessary. Thus, these
checks are now removed.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Message-ID: <20251121090654.631996-4-libaokun@huaweicloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h