mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
95599968d1
commit
b2f4edb335
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue