ntfs: conditional removal of NFSD code
Subsystems (2)
PATCH 1/1 ntfs: conditional removal of NFSD code
Signed-off-by Alexey Dobriyan <[email protected]>
---
fs/ntfs/namei.c | 2 ++ fs/ntfs/super.c | 2 ++ 2 files changed, 4 insertions(+)
fs/ntfs/namei.c +2 -0
@@ -363,6 +363,7 @@ struct inode_operations ntfs_dir_inode_o .lookup = ntfs_lookup, /* VFS: Lookup directory. */ }; +#if defined(CONFIG_EXPORTFS ) || defined(CONFIG_EXPORTFS_MODULE )/** * ntfs_get_parent - find the dentry of the parent of a given directory dentry * @child_dent: dentry of the directory whose parent directory to find
@@ -523,3 +524,4 @@ struct export_operations ntfs_export_opsgiven a file handle sub-fragment. */ }; +#endif
fs/ntfs/super.c +2 -0
@@ -2967,7 +2967,9 @@ #endif /* ! NTFS_RW */ default_upcase =NULL ; }mutex_unlock (&ntfs_lock); +#if defined(CONFIG_EXPORTFS ) || defined(CONFIG_EXPORTFS_MODULE ) sb->s_export_op = &ntfs_export_ops; +#endif lock_kernel ();lockdep_on ();return 0 ;