diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-01 15:39:46 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-15 11:54:47 -0400 |
commit | a6b6d5b85abf4914bbceade5dddd54c345c64136 (patch) | |
tree | 2cca0a777a06004ba9e8a212ce8cf8f470f7fc68 /fs/nfs/callback_proc.c | |
parent | e824f99adaaf1ed0e03eac8574599af6d992163d (diff) | |
download | linux-a6b6d5b85abf4914bbceade5dddd54c345c64136.tar.bz2 |
NFS: Use an atomic_long_t to count the number of requests
Rather than forcing us to take the inode->i_lock just in order to bump
the number.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/callback_proc.c')
-rw-r--r-- | fs/nfs/callback_proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index 5427cdf04c5a..14358de173fb 100644 --- a/fs/nfs/callback_proc.c +++ b/fs/nfs/callback_proc.c @@ -51,7 +51,7 @@ __be32 nfs4_callback_getattr(void *argp, void *resp, goto out_iput; res->size = i_size_read(inode); res->change_attr = delegation->change_attr; - if (nfsi->nrequests != 0) + if (nfs_have_writebacks(inode)) res->change_attr++; res->ctime = inode->i_ctime; res->mtime = inode->i_mtime; |