]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: clean up val{>>,<<}F2FS_BLKSIZE_BITS
authorZhiguo Niu <zhiguo.niu@unisoc.com>
Thu, 1 Aug 2024 01:33:51 +0000 (09:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:54 +0000 (13:53 +0100)
commit07efe0b7d3bbb2608bf177696c140425fefba93f
treee2879df33c32afc946d3a3805af24a308b57116d
parent48fd5cc01bc1d646306ce68da2fc0aff5a3b1ee2
f2fs: clean up val{>>,<<}F2FS_BLKSIZE_BITS

[ Upstream commit 8fb9f31984bdc0aaa1b0f7c7e7a27bd3137f8744 ]

Use F2FS_BYTES_TO_BLK(bytes) and F2FS_BLK_TO_BYTES(blk) for cleanup

Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: 3273d8ad947d ("f2fs: fix to do cast in F2FS_{BLK_TO_BYTES, BTYES_TO_BLK} to avoid overflow")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/debug.c
fs/f2fs/file.c
fs/f2fs/node.c
fs/f2fs/super.c
include/linux/f2fs_fs.h