Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372151
b: refs/heads/master
c: e162b2f
h: refs/heads/master
i:
  372149: 7d32017
  372147: 649102b
  372143: 99b6ba1
v: v3
  • Loading branch information
Zheng Liu authored and Jan Kara committed Apr 25, 2013
1 parent e962cd6 commit 6270679
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 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: e678a4f0f50d4fa4f7aaa6de8eb3f071513356a0
refs/heads/master: e162b2f835eeda0d255bd463753b5eb823735205
1 change: 0 additions & 1 deletion trunk/fs/jbd/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ static handle_t *new_handle(int nblocks)
handle_t *handle = jbd_alloc_handle(GFP_NOFS);
if (!handle)
return NULL;
memset(handle, 0, sizeof(*handle));
handle->h_buffer_credits = nblocks;
handle->h_ref = 1;

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/jbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ extern struct kmem_cache *jbd_handle_cache;

static inline handle_t *jbd_alloc_handle(gfp_t gfp_flags)
{
return kmem_cache_alloc(jbd_handle_cache, gfp_flags);
return kmem_cache_zalloc(jbd_handle_cache, gfp_flags);
}

static inline void jbd_free_handle(handle_t *handle)
Expand Down

0 comments on commit 6270679

Please sign in to comment.