]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: clean up f2fs_truncate_partial_cluster()
authorChao Yu <chao@kernel.org>
Tue, 5 Aug 2025 06:29:12 +0000 (14:29 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 11 Aug 2025 17:03:55 +0000 (17:03 +0000)
commitcbba5038ee29f16f583978d6debe486503693c70
tree4e0e515b15f8d72e42af13d549bcc0042a9f831e
parent0b2cd5092139f499544c77b5107a74e5fdb3a386
f2fs: clean up f2fs_truncate_partial_cluster()

Clean up codes as below:
- avoid unnecessary "err > 0" check condition
- use "1 << log_cluster_size" instead of F2FS_I(inode)->i_cluster_size

No logic changes.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c