diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-03 16:10:55 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:41 -0400 |
commit | 412c77cee6d6e73fbe1dc3d67f52163efed33fc4 (patch) | |
tree | f7ea21158a76f8b3fd6450ee66dcc053f94b3fbd /include/linux/nfs_fs.h | |
parent | 8383e4602c89857ef926f29ca61ac0a83a614443 (diff) | |
download | linux-412c77cee6d6e73fbe1dc3d67f52163efed33fc4.tar.gz linux-412c77cee6d6e73fbe1dc3d67f52163efed33fc4.tar.bz2 linux-412c77cee6d6e73fbe1dc3d67f52163efed33fc4.zip |
NFSv4: Defer inode revalidation when setting up a delegation
Currently we force a synchronous call to __nfs_revalidate_inode() in
nfs_inode_set_delegation(). This not only ensures that we cannot call
nfs_inode_set_delegation from an asynchronous context, but it also slows
down any call to open().
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
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 cf395351cdd4..e94971040de9 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -184,6 +184,7 @@ struct nfs_inode { #define NFS_INO_INVALID_ACCESS 0x0008 /* cached access cred invalid */ #define NFS_INO_INVALID_ACL 0x0010 /* cached acls are invalid */ #define NFS_INO_REVAL_PAGECACHE 0x0020 /* must revalidate pagecache */ +#define NFS_INO_REVAL_FORCED 0x0040 /* force revalidation ignoring a delegation */ /* * Bit offsets in flags field |