[PATCH] fat: conditional removal of NFSD code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---

 fs/fat/inode.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -634,6 +634,7 @@ static struct super_operations fat_sops 
 	.show_options	= fat_show_options,
 };
 
+#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE)
 /*
  * a FAT file handle with fhtype 3 is
  *  0/  i_ino - for fast, reliable lookup if still in the cache
@@ -784,6 +785,7 @@ static struct export_operations fat_expo
 	.get_dentry	= fat_get_dentry,
 	.get_parent	= fat_get_parent,
 };
+#endif
 
 static int fat_show_options(struct seq_file *m, struct vfsmount *mnt)
 {
@@ -1172,7 +1174,9 @@ int fat_fill_super(struct super_block *s
 	sb->s_flags |= MS_NODIRATIME;
 	sb->s_magic = MSDOS_SUPER_MAGIC;
 	sb->s_op = &fat_sops;
+#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE)
 	sb->s_export_op = &fat_export_ops;
+#endif
 	sbi->dir_ops = fs_dir_inode_ops;
 
 	error = parse_options(data, isvfat, silent, &debug, &sbi->options);

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux