linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] jbd2: use kmem_cache_zalloc wrapper instead of flag
@ 2012-05-21 13:19 Wanlong Gao
  2012-06-01  4:13 ` Ted Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Wanlong Gao @ 2012-05-21 13:19 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, Wanlong Gao

Use kmem_cache_zalloc wrapper instead of flag __GFP_ZERO.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
 fs/jbd2/transaction.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index ddcd354..fb1ab953 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
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] jbd2: use kmem_cache_zalloc wrapper instead of flag
  2012-05-21 13:19 [PATCH] jbd2: use kmem_cache_zalloc wrapper instead of flag Wanlong Gao
@ 2012-06-01  4:13 ` Ted Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2012-06-01  4:13 UTC (permalink / raw)
  To: Wanlong Gao; +Cc: linux-ext4

On Mon, May 21, 2012 at 09:19:48PM +0800, Wanlong Gao wrote:
> Use kmem_cache_zalloc wrapper instead of flag __GFP_ZERO.
> 
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

Applied, thanks.

					- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-01  4:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 13:19 [PATCH] jbd2: use kmem_cache_zalloc wrapper instead of flag Wanlong Gao
2012-06-01  4:13 ` Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).