aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-01-30 14:21:14 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-02-04 10:35:32 -0500
commit6ae373394c4257bad562817aa60464ff7fe8f9c4 (patch)
tree7f21050411045b77eb60c1080d230c3ea93a10f1 /include/linux
parent0e3b137fbf0f4ab901de58fcac7edb12922daa08 (diff)
NFSv4.1: Ask for no delegation on OPEN if using O_DIRECT
If we're using NFSv4.1, then we have the ability to let the server know whether or not we believe that returning a delegation as part of our OPEN request would be useful. The feature needs to be used with care, since the client sending the request doesn't necessarily know how other clients are using that file, and how they may be affected by the delegation. For this reason, our initial use of the feature will be to let the server know when the client believes that handing out a delegation would not be useful. The first application for this function is when opening the file using O_DIRECT. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_xdr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 81401125ab2d..2c35e2affa6f 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -326,6 +326,7 @@ struct nfs_openargs {
326 struct nfs_seqid * seqid; 326 struct nfs_seqid * seqid;
327 int open_flags; 327 int open_flags;
328 fmode_t fmode; 328 fmode_t fmode;
329 u32 share_access;
329 u32 access; 330 u32 access;
330 __u64 clientid; 331 __u64 clientid;
331 struct stateowner_id id; 332 struct stateowner_id id;
@@ -393,6 +394,7 @@ struct nfs_closeargs {
393 nfs4_stateid stateid; 394 nfs4_stateid stateid;
394 struct nfs_seqid * seqid; 395 struct nfs_seqid * seqid;
395 fmode_t fmode; 396 fmode_t fmode;
397 u32 share_access;
396 const u32 * bitmask; 398 const u32 * bitmask;
397}; 399};
398 400