]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: clean up w/ F2FS_{BLK_TO_BYTES,BTYES_TO_BLK}
authorChao Yu <chao@kernel.org>
Fri, 8 Nov 2024 01:25:55 +0000 (09:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:12 +0000 (20:03 +0100)
commit6358df316dd8f1fe1a2b3d4b2d6d6bc5acd02e21
tree4d35a30ecdf661f3fe5f6d1db0263beddd656aba
parent405b6d5f90dfb3672a06d821ec1ceb35b1a28c83
f2fs: clean up w/ F2FS_{BLK_TO_BYTES,BTYES_TO_BLK}

[ Upstream commit 7461f37094180200cb2f98e60ef99a0cea97beec ]

f2fs doesn't support different blksize in one instance, so
bytes_to_blks() and blks_to_bytes() are equal to F2FS_BYTES_TO_BLK
and F2FS_BLK_TO_BYTES, let's use F2FS_BYTES_TO_BLK/F2FS_BLK_TO_BYTES
instead for cleanup.

Reviewed-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: 6787a8224585 ("f2fs: fix to requery extent which cross boundary of inquiry")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/data.c