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:
9559996
)
jbd2: use kmem_cache_zalloc wrapper instead of flag
author
Wanlong Gao
<gaowanlong@cn.fujitsu.com>
Fri, 1 Jun 2012 04:10:32 +0000
(
00:10
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 1 Jun 2012 04:10:32 +0000
(
00:10
-0400)
Use kmem_cache_zalloc wrapper instead of flag __GFP_ZERO.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/jbd2/transaction.c
patch
|
blob
|
history
diff --git
a/fs/jbd2/transaction.c
b/fs/jbd2/transaction.c
index ddcd3549c6c26cbc9cb9dd46831b189ed3c0441e..fb1ab9533b67277a557cd5f8ea9f7216b8284d4e 100644
(file)
--- a/
fs/jbd2/transaction.c
+++ b/
fs/jbd2/transaction.c
@@
-162,8
+162,8
@@
static int start_this_handle(journal_t *journal, handle_t *handle,
alloc_transaction:
if (!journal->j_running_transaction) {
- new_transaction = kmem_cache_alloc(transaction_cache,
-
gfp_mask | __GFP_ZERO
);
+ new_transaction = kmem_cache_
z
alloc(transaction_cache,
+
gfp_mask
);
if (!new_transaction) {
/*
* If __GFP_FS is not present, then we may be