diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-01 23:04:12 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-08-15 17:54:48 +0200 |
commit | 5cb953d4b1e70a09084f71594c45d47458346bc2 (patch) | |
tree | ddf200fdc3ee14e0a315eb0619c2c8571e662636 /fs/nfs/inode.c | |
parent | NFS: Use an atomic_long_t to count the number of requests (diff) | |
download | linux-5cb953d4b1e70a09084f71594c45d47458346bc2.tar.xz linux-5cb953d4b1e70a09084f71594c45d47458346bc2.zip |
NFS: Use an atomic_long_t to count the number of commits
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 0480eb02299a..134d9f560240 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -2012,7 +2012,7 @@ static void init_once(void *foo) INIT_LIST_HEAD(&nfsi->access_cache_inode_lru); INIT_LIST_HEAD(&nfsi->commit_info.list); atomic_long_set(&nfsi->nrequests, 0); - nfsi->commit_info.ncommit = 0; + atomic_long_set(&nfsi->commit_info.ncommit, 0); atomic_set(&nfsi->commit_info.rpcs_out, 0); init_rwsem(&nfsi->rmdir_sem); mutex_init(&nfsi->commit_mutex); |