From: Alexey Dobriyan Subject: [PATCH] ntfs: conditional removal of NFSD code Date: Sat, 6 Jan 2007 23:00:42 +0300 Message-ID: <20070106200042.GD6711@martell.zuzino.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, aia21@cantab.net Return-path: Received: from nf-out-0910.google.com ([64.233.182.184]:8709 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932130AbXAFUAq (ORCPT ); Sat, 6 Jan 2007 15:00:46 -0500 Received: by nf-out-0910.google.com with SMTP id o25so8873330nfa for ; Sat, 06 Jan 2007 12:00:45 -0800 (PST) To: akpm@osdl.org Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Signed-off-by: Alexey Dobriyan --- fs/ntfs/namei.c | 2 ++ fs/ntfs/super.c | 2 ++ 2 files changed, 4 insertions(+) --- a/fs/ntfs/namei.c +++ b/fs/ntfs/namei.c @@ -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 --- a/fs/ntfs/super.c +++ b/fs/ntfs/super.c @@ -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;