diff options
author | Richard Weinberger <richard@nod.at> | 2022-12-07 09:43:09 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-02-20 09:20:09 -0500 |
commit | f78e44545814b26ab6af7cdd5b022293ceac867e (patch) | |
tree | c9721a6b2ee55f16b398602378feab1fcde5fa4c | |
parent | e1f19857f94be09f9526f180e64f20138bd4e394 (diff) | |
download | linux-stable-f78e44545814b26ab6af7cdd5b022293ceac867e.tar.gz linux-stable-f78e44545814b26ab6af7cdd5b022293ceac867e.tar.bz2 linux-stable-f78e44545814b26ab6af7cdd5b022293ceac867e.zip |
NFS: nfs_encode_fh: Remove S_AUTOMOUNT check
Now with NFSD being able to cross into auto mounts,
the check can be removed.
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Ian Kent <raven@themaw.net>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r-- | fs/nfs/export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/export.c b/fs/nfs/export.c index 01596f2d0a1e..0a5ee1754d50 100644 --- a/fs/nfs/export.c +++ b/fs/nfs/export.c @@ -42,7 +42,7 @@ 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 (*max_len < len || IS_AUTOMOUNT(inode)) { + if (*max_len < len) { dprintk("%s: fh len %d too small, required %d\n", __func__, *max_len, len); *max_len = len; |