diff options
author | 2021-05-11 23:41:10 -0400 | |
---|---|---|
committer | 2021-06-29 13:12:39 -0400 | |
commit | e97bc66377bca097e1f3349ca18ca17f202ff659 (patch) | |
tree | 12093332810a92c0eae0ab0717e3c4353a4ac0d6 /include/linux/nfs_fs.h | |
parent | NFSv4: Add support for application leases underpinned by a delegation (diff) | |
download | linux-e97bc66377bca097e1f3349ca18ca17f202ff659.tar.gz linux-e97bc66377bca097e1f3349ca18ca17f202ff659.tar.bz2 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/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 1 |
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; |