Skip to contentSkip to conversation

f2fs crypto: check CONFIG_F2FS_FS_XATTR for encrypted symlink

PATCH New Chao Yu 1 participant 1 message Dec 31, 2015 F2FS file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/1 f2fs crypto: check CONFIG_F2FS_FS_XATTR for encrypted symlink

Add missed CONFIG_F2FS_FS_XATTR for encrypted symlink inode in order to avoid unneeded registry of ->{get,set,remove}xattr.

---
 fs/f2fs/namei.c | 2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/namei.c +2 -0
index a629af5..0d61a68 100644
@@ -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
 
Signature · 1 line
2.6.3