Re: [PATCH] fs/buffer.c: Remove the unnecessary init operation after allocating buffer_head.

2013-04-21 Thread majianpeng
On 04/19/2013 10:48 PM, Jan Kara wrote: > On Fri 19-04-13 10:29:36, majianpeng wrote: >> Because alloc struct buffer_head using kmem_cache_zalloc,so it's not need to >> call 'init_buffer(bh, NULL, NULL)'. >> >> Signed-off-by: Jianpeng Ma >> --- >> fs/buffer.c | 2 -- >> fs/jbd/journal.c |

Re: [PATCH] fs/buffer.c: Remove the unnecessary init operation after allocating buffer_head.

2013-04-19 Thread Jan Kara
On Fri 19-04-13 10:29:36, majianpeng wrote: > Because alloc struct buffer_head using kmem_cache_zalloc,so it's not need to > call 'init_buffer(bh, NULL, NULL)'. > > Signed-off-by: Jianpeng Ma > --- > fs/buffer.c | 2 -- > fs/jbd/journal.c | 1 - > fs/jbd2/journal.c | 1 - > 3 files change

[PATCH] fs/buffer.c: Remove the unnecessary init operation after allocating buffer_head.

2013-04-18 Thread majianpeng
Because alloc struct buffer_head using kmem_cache_zalloc,so it's not need to call 'init_buffer(bh, NULL, NULL)'. Signed-off-by: Jianpeng Ma --- fs/buffer.c | 2 -- fs/jbd/journal.c | 1 - fs/jbd2/journal.c | 1 - 3 files changed, 4 deletions(-) diff --git a/fs/buffer.c b/fs/buffer.c inde