OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ccee94
)
nfs: remove dead code from nfs_encode_fh()
author
NeilBrown
<neilb@suse.com>
Tue, 21 Nov 2017 21:23:41 +0000
(08:23 +1100)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Mon, 15 Jan 2018 04:06:29 +0000
(23:06 -0500)
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>
fs/nfs/export.c
patch
|
blob
|
history
diff --git
a/fs/nfs/export.c
b/fs/nfs/export.c
index
83fd09f
..
2b80a66
100644
(file)
--- 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);