Message ID | 20220110184419.27665-4-richard@nod.at (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Dealing with NFS re-export and cross mounts | expand |
diff --git a/fs/nfs/export.c b/fs/nfs/export.c index 8c8028959863..6d56a52c424a 100644 --- a/fs/nfs/export.c +++ b/fs/nfs/export.c @@ -54,11 +54,6 @@ nfs_encode_fh(struct inode *inode, __u32 *p, int *max_len, struct inode *parent) dprintk("%s: max fh len %d inode %p parent %p", __func__, *max_len, inode, parent); - if (IS_AUTOMOUNT(inode)) { - dprintk("%s: refusing to create fh for automount inode %p\n", - __func__, inode); - return FILEID_INVALID; - } if (*max_len < len) { dprintk("%s: fh len %d too small, required %d\n", __func__, *max_len, len);
Now with NFSD being able to cross into auto mounts, the check can be removed. Signed-off-by: Richard Weinberger <richard@nod.at> --- fs/nfs/export.c | 5 ----- 1 file changed, 5 deletions(-)