projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a695da
)
NFS: Initialise commit_info.rpc_out when !defined(CONFIG_NFS_V4)
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 19 Jun 2012 22:38:56 +0000
(18:38 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 19 Jun 2012 22:42:28 +0000
(18:42 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Fred Isaman <iisaman@netapp.com>
fs/nfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index e605d695dbcb7b746d633f37e5ceb509deb7b790..f7296983eba60c5ea21f164600be800ea988977f 100644
(file)
--- a/
fs/nfs/inode.c
+++ b/
fs/nfs/inode.c
@@
-1530,7
+1530,6
@@
static inline void nfs4_init_once(struct nfs_inode *nfsi)
nfsi->delegation_state = 0;
init_rwsem(&nfsi->rwsem);
nfsi->layout = NULL;
- atomic_set(&nfsi->commit_info.rpcs_out, 0);
#endif
}
@@
-1545,6
+1544,7
@@
static void init_once(void *foo)
INIT_LIST_HEAD(&nfsi->commit_info.list);
nfsi->npages = 0;
nfsi->commit_info.ncommit = 0;
+ atomic_set(&nfsi->commit_info.rpcs_out, 0);
atomic_set(&nfsi->silly_count, 1);
INIT_HLIST_HEAD(&nfsi->silly_list);
init_waitqueue_head(&nfsi->waitqueue);