f2fs: Use DIV_ROUND_UP() instead of open-coding
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 20 Jun 2019 14:42:08 +0000 (16:42 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 2 Jul 2019 22:40:41 +0000 (15:40 -0700)
commitf91108b801ad7d7668c95841f4cb76494b2a9c8a
tree54d815eab17ed49dc3d784c2da87f54a771b1115
parent2d821c12176bc1184701d548c987b2e2a39429ed
f2fs: Use DIV_ROUND_UP() instead of open-coding

Replace the open-coded divisions with round-up by calls to the
DIV_ROUND_UP() helper macro.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/segment.h