summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-11-21 22:23:41 +0100
committerTrond Myklebust <trond.myklebust@primarydata.com>2018-01-15 05:06:29 +0100
commitaaa1500894655427f1b964d1f31dbbd20baa80ab (patch)
tree2676908aa5980e52826062395424ca058d02d46f /fs/nfs
parentSupport statx() mask and query flags parameters (diff)
downloadlinux-aaa1500894655427f1b964d1f31dbbd20baa80ab.tar.xz
linux-aaa1500894655427f1b964d1f31dbbd20baa80ab.zip
nfs: remove dead code from nfs_encode_fh()
This code can never be used as the IS_AUTOMOUNT(inode) case has already been handled. So remove it to avoid confusion. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/export.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/export.c b/fs/nfs/export.c
index 83fd09fc8f77..2b80a6652818 100644
--- a/fs/nfs/export.c
+++ b/fs/nfs/export.c
@@ -48,10 +48,6 @@ nfs_encode_fh(struct inode *inode, __u32 *p, int *max_len, struct inode *parent)
*max_len = len;
return FILEID_INVALID;
}
- if (IS_AUTOMOUNT(inode)) {
- *max_len = FILEID_INVALID;
- goto out;
- }
p[FILEID_HIGH_OFF] = NFS_FILEID(inode) >> 32;
p[FILEID_LOW_OFF] = NFS_FILEID(inode);