summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-05-12 05:41:10 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-06-29 19:12:39 +0200
commite97bc66377bca097e1f3349ca18ca17f202ff659 (patch)
tree12093332810a92c0eae0ab0717e3c4353a4ac0d6 /include
parentNFSv4: Add support for application leases underpinned by a delegation (diff)
downloadlinux-e97bc66377bca097e1f3349ca18ca17f202ff659.tar.xz
linux-e97bc66377bca097e1f3349ca18ca17f202ff659.zip
NFS: nfs_find_open_context() may only select open files
If a file has already been closed, then it should not be selected to support further I/O. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> [Trond: Fix an invalid pointer deref reported by Colin Ian King]
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfs_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index ffba254d2098..ce6474594872 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -84,6 +84,7 @@ struct nfs_open_context {
#define NFS_CONTEXT_RESEND_WRITES (1)
#define NFS_CONTEXT_BAD (2)
#define NFS_CONTEXT_UNLOCK (3)
+#define NFS_CONTEXT_FILE_OPEN (4)
int error;
struct list_head list;