summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/xattr.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2013-08-09 15:03:21 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-08-09 15:25:37 +0900
commitd71b5564c0da4f652af2e4ca9d3c22b9c960ec1f (patch)
treed869cc779ae463c7769aa640e849b90ffd71f52a /fs/f2fs/xattr.c
parente518ff81c337e39b9b63d92ba41e4512521d7c9c (diff)
downloadop-kernel-dev-d71b5564c0da4f652af2e4ca9d3c22b9c960ec1f.zip
op-kernel-dev-d71b5564c0da4f652af2e4ca9d3c22b9c960ec1f.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c
index 0f6d2a1..fb16f71 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);
OpenPOWER on IntegriCloud