diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-09 08:03:21 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-09 08:25:37 +0200 |
commit | d71b5564c0da4f652af2e4ca9d3c22b9c960ec1f (patch) | |
tree | d869cc779ae463c7769aa640e849b90ffd71f52a /fs/f2fs/xattr.c | |
parent | f2fs: fix inconsistency between xattr node blocks and its inode (diff) | |
download | linux-d71b5564c0da4f652af2e4ca9d3c22b9c960ec1f.tar.xz 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/xattr.c')
-rw-r--r-- | fs/f2fs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 0f6d2a1b9a7a..fb16f71e4c23 100644 --- a/fs/f2fs/xattr.c +++ b/fs/f2fs/xattr.c @@ -488,7 +488,7 @@ int f2fs_setxattr(struct inode *inode, int name_index, const char *name, } /* store checkpoint version for conducting checkpoint during fsync */ - fi->xattr_ver = le64_to_cpu(F2FS_CKPT(sbi)->checkpoint_ver); + fi->xattr_ver = cur_cp_version(F2FS_CKPT(sbi)); if (ipage) update_inode(inode, ipage); |