diff options
author | Wanlong Gao <gaowanlong@cn.fujitsu.com> | 2012-06-01 00:10:32 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-06-01 00:10:32 -0400 |
commit | b2f4edb335f23626225a792e0669d1becf68312f (patch) | |
tree | 9e7b1b79f5d00d5adbe0ccced87be4045e245100 /fs/jbd2 | |
parent | 95599968d19db175829fb580baa6b68939b320fb (diff) | |
download | linux-b2f4edb335f23626225a792e0669d1becf68312f.tar.gz linux-b2f4edb335f23626225a792e0669d1becf68312f.tar.bz2 linux-b2f4edb335f23626225a792e0669d1becf68312f.zip |
jbd2: use kmem_cache_zalloc wrapper instead of flag
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>
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index ddcd3549c6c2..fb1ab9533b67 100644 --- 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_zalloc(transaction_cache, + gfp_mask); if (!new_transaction) { /* * If __GFP_FS is not present, then we may be |