Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308567
b: refs/heads/master
c: 292f3ee
h: refs/heads/master
i:
  308565: e3375d7
  308563: 904a71b
  308559: 32fa1d1
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Apr 30, 2012
1 parent 03fd63d commit a879ae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d74743b088d116e31fe1b73f47e782ee2016b94
refs/heads/master: 292f3eeef00a20fa0ef4feec62792ad0065760a0
12 changes: 1 addition & 11 deletions trunk/fs/nfs/direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,26 +149,16 @@ static inline struct nfs_direct_req *nfs_direct_req_alloc(void)
{
struct nfs_direct_req *dreq;

dreq = kmem_cache_alloc(nfs_direct_cachep, GFP_KERNEL);
dreq = kmem_cache_zalloc(nfs_direct_cachep, GFP_KERNEL);
if (!dreq)
return NULL;

kref_init(&dreq->kref);
kref_get(&dreq->kref);
init_completion(&dreq->completion);
dreq->mds_cinfo.ncommit = 0;
atomic_set(&dreq->mds_cinfo.rpcs_out, 0);
INIT_LIST_HEAD(&dreq->mds_cinfo.list);
INIT_WORK(&dreq->work, nfs_direct_write_schedule_work);
memset(&dreq->ds_cinfo, 0, sizeof(dreq->ds_cinfo));
dreq->iocb = NULL;
dreq->ctx = NULL;
dreq->l_ctx = NULL;
spin_lock_init(&dreq->lock);
atomic_set(&dreq->io_count, 0);
dreq->count = 0;
dreq->error = 0;
dreq->flags = 0;

return dreq;
}
Expand Down

0 comments on commit a879ae8

Please sign in to comment.