Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> --- mm/shmem.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/mm/shmem.c +++ b/mm/shmem.c @@ -1963,6 +1963,7 @@ static struct xattr_handler *shmem_xattr }; #endif +#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE) static struct dentry *shmem_get_parent(struct dentry *child) { return ERR_PTR(-ESTALE); @@ -2041,6 +2042,7 @@ static struct export_operations shmem_ex .encode_fh = shmem_encode_fh, .decode_fh = shmem_decode_fh, }; +#endif static int shmem_parse_options(char *options, int *mode, uid_t *uid, gid_t *gid, unsigned long *blocks, unsigned long *inodes, @@ -2214,7 +2216,9 @@ #ifdef CONFIG_TMPFS &inodes, &policy, &policy_nodes)) return -EINVAL; } +#if defined(CONFIG_EXPORTFS) || defined(CONFIG_EXPORTFS_MODULE) sb->s_export_op = &shmem_export_ops; +#endif #else sb->s_flags |= MS_NOUSER; #endif - 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