summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-10-17 21:57:47 +0200
committerJ. Bruce Fields <bfields@redhat.com>2011-10-17 23:50:07 +0200
commit4cdc951b8611de4ce25e35c9fb8c0656150c9245 (patch)
treebd5fafca3ae02390d2f096c631ffd34eb98b4913 /fs/nfsd/xdr4.h
parentnfsd4: do idr preallocation with stateid allocation (diff)
downloadlinux-4cdc951b8611de4ce25e35c9fb8c0656150c9245.tar.xz
linux-4cdc951b8611de4ce25e35c9fb8c0656150c9245.zip
nfsd4: preallocate open stateid in process_open1()
As with the nfs4_file, we'd prefer to find out about any failure before creating a new file rather than after. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index 502dd43634f9..ce8c59196b4e 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -229,6 +229,7 @@ struct nfsd4_open {
int op_truncate; /* used during processing */
struct nfs4_openowner *op_openowner; /* used during processing */
struct nfs4_file *op_file; /* used during processing */
+ struct nfs4_ol_stateid *op_stp; /* used during processing */
struct nfs4_acl *op_acl;
};
#define op_iattr iattr