f2fs crypto: check CONFIG_F2FS_FS_XATTR for encrypted symlink
authorChao Yu <chao2.yu@samsung.com>
Thu, 31 Dec 2015 10:20:10 +0000 (18:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 1 Jan 2016 02:54:50 +0000 (18:54 -0800)
Add missed CONFIG_F2FS_FS_XATTR for encrypted symlink inode in order
to avoid unneeded registry of ->{get,set,remove}xattr.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c

index a629af5cb0ce6cc4f37ed6c0609862546f4282cc..0d61a6864ab104212ad2d12f09c59b695bb4deec 100644 (file)
@@ -1016,10 +1016,12 @@ const struct inode_operations f2fs_encrypted_symlink_inode_operations = {
        .put_link       = kfree_put_link,
        .getattr        = f2fs_getattr,
        .setattr        = f2fs_setattr,
+#ifdef CONFIG_F2FS_FS_XATTR
        .setxattr       = generic_setxattr,
        .getxattr       = generic_getxattr,
        .listxattr      = f2fs_listxattr,
        .removexattr    = generic_removexattr,
+#endif
 };
 #endif