Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> --- fs/reiserfs/inode.c | 2 ++ fs/reiserfs/namei.c | 2 ++ fs/reiserfs/super.c | 4 ++++ 3 files changed, 8 insertions(+) --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c @@ -1512,6 +1512,7 @@ struct inode *reiserfs_iget(struct super return inode; } +#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE) struct dentry *reiserfs_get_dentry(struct super_block *sb, void *vobjp) { __u32 *data = vobjp; @@ -1618,6 +1619,7 @@ int reiserfs_encode_fh(struct dentry *de spin_unlock(&dentry->d_lock); return *lenp; } +#endif /* looks for stat data, then copies fields to it, marks the buffer containing stat data as dirty */ --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c @@ -374,6 +374,7 @@ static struct dentry *reiserfs_lookup(st return d_splice_alias(inode, dentry); } +#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE) /* ** looks up the dentry of the parent directory for child. ** taken from ext2_get_parent @@ -412,6 +413,7 @@ struct dentry *reiserfs_get_parent(struc } return parent; } +#endif /* add entry to the directory (entry can be hidden). --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -651,12 +651,14 @@ static struct quotactl_ops reiserfs_qctl }; #endif +#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE) static struct export_operations reiserfs_export_ops = { .encode_fh = reiserfs_encode_fh, .decode_fh = reiserfs_decode_fh, .get_parent = reiserfs_get_parent, .get_dentry = reiserfs_get_dentry, }; +#endif /* this struct is used in reiserfs_getopt () for containing the value for those mount options that have values rather than being toggles. */ @@ -1333,7 +1335,9 @@ static int read_super_block(struct super is_reiserfs_3_5(rs) ? "3.5" : "3.6"); s->s_op = &reiserfs_sops; +#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE) s->s_export_op = &reiserfs_export_ops; +#endif #ifdef CONFIG_QUOTA s->s_qcop = &reiserfs_qctl_operations; s->dq_op = &reiserfs_quota_operations; - 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