* [PATCH] f2fs crypto: check CONFIG_F2FS_FS_XATTR for encrypted symlink
@ 2015-12-31 10:20 Chao Yu
0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2015-12-31 10:20 UTC (permalink / raw)
To: Jaegeuk Kim; +Cc: linux-f2fs-devel, linux-kernel
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>
---
fs/f2fs/namei.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index a629af5..0d61a68 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -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
--
2.6.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-31 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-31 10:20 [PATCH] f2fs crypto: check CONFIG_F2FS_FS_XATTR for encrypted symlink Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome