]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: use round_up to enhance calculation
authorChao Yu <yuchao0@huawei.com>
Wed, 8 Apr 2020 11:55:17 +0000 (19:55 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 May 2020 03:37:13 +0000 (20:37 -0700)
commit9a8f1dfd2b52f480405598d55779b540b0403d15
tree3fe7043d02e277ce19ca2decd22f4912cc65a5ca
parent6a4ac7ef120f14a43994319f21d9fa9aae7d9a7c
f2fs: use round_up to enhance calculation

.i_cluster_size should be power of 2, so we can use round_up() instead
of roundup() to enhance the calculation.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c