diff options
author | Weston Andros Adamson <dros@netapp.com> | 2013-10-21 13:10:11 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-10-28 14:54:03 -0400 |
commit | a43ec98b72aae3e330f0673438f58316c3769b84 (patch) | |
tree | 42696d5d81819db0fb35ff267703d63a63437d65 | |
parent | f494a6071d31e3294a3b51ad7a3684f983953f9f (diff) |
NFSv4: don't fail on missing fattr in open recover
This is an unneeded check that could cause the client to fail to recover
opens.
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/nfs4proc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index acd20c549ce2..e76fd218ec8e 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1323,12 +1323,6 @@ _nfs4_opendata_reclaim_to_nfs4_state(struct nfs4_opendata *data) | |||
1323 | goto err; | 1323 | goto err; |
1324 | } | 1324 | } |
1325 | 1325 | ||
1326 | ret = -ESTALE; | ||
1327 | if (!(data->f_attr.valid & NFS_ATTR_FATTR_TYPE) || | ||
1328 | !(data->f_attr.valid & NFS_ATTR_FATTR_FILEID) || | ||
1329 | !(data->f_attr.valid & NFS_ATTR_FATTR_CHANGE)) | ||
1330 | goto err; | ||
1331 | |||
1332 | ret = -ENOMEM; | 1326 | ret = -ENOMEM; |
1333 | state = nfs4_get_open_state(inode, data->owner); | 1327 | state = nfs4_get_open_state(inode, data->owner); |
1334 | if (state == NULL) | 1328 | if (state == NULL) |