f2fs: introduce macros to convert bytes and blocks in f2fs
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 9 Feb 2015 20:02:44 +0000 (12:02 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Feb 2015 01:04:48 +0000 (17:04 -0800)
commitf7ef9b83b583640111039b30e13263b71c3a6ed5
tree712cb50392f1b1a2d922a991fa63acf8d5c3c553
parentda17eece035d72cb50d48529744a490784f29d2f
f2fs: introduce macros to convert bytes and blocks in f2fs

This patch adds two macros for transition between byte and block offsets.
Currently, f2fs only supports 4KB blocks, so use the default size for now.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/file.c
fs/f2fs/segment.c
include/linux/f2fs_fs.h