Skip to contentSkip to conversation

nfs: remove dead code from nfs_encode_fh()

PATCH New NeilBrown 1 participant 1 message Nov 21, 2017

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 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.

---
 fs/nfs/export.c | 4 ----
 1 file changed, 4 deletions(-)
fs/nfs/export.c +0 -4
index 83fd09fc8f77..2b80a6652818 100644
@@ -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);
Signature · 1 line
2.14.0.rc0.dirty