diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-09 15:03:21 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-09 15:25:37 +0900 |
commit | d71b5564c0da4f652af2e4ca9d3c22b9c960ec1f (patch) | |
tree | d869cc779ae463c7769aa640e849b90ffd71f52a /fs/f2fs/file.c | |
parent | e518ff81c337e39b9b63d92ba41e4512521d7c9c (diff) | |
download | blackbird-op-linux-d71b5564c0da4f652af2e4ca9d3c22b9c960ec1f.tar.gz blackbird-op-linux-d71b5564c0da4f652af2e4ca9d3c22b9c960ec1f.zip |
f2fs: introduce cur_cp_version function to reduce code size
This patch introduces a new inline function, cur_cp_version, to reduce redundant
codes.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r-- | fs/f2fs/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 8ef3184b0037..bd4184e35525 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -161,8 +161,7 @@ int f2fs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) need_cp = true; else if (!is_checkpointed_node(sbi, F2FS_I(inode)->i_pino)) need_cp = true; - else if (F2FS_I(inode)->xattr_ver == - le64_to_cpu(F2FS_CKPT(sbi)->checkpoint_ver)) + else if (F2FS_I(inode)->xattr_ver == cur_cp_version(F2FS_CKPT(sbi))) need_cp = true; if (need_cp) { |