Skip to contentSkip to conversation

ntfs: conditional removal of NFSD code

PATCH New Alexey Dobriyan 1 participant 1 message Jan 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ntfs: conditional removal of NFSD code

---

 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_ops
 						   given 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;