+ fs-bufferc-remove-redundant-initialization-in-alloc_page_buffers.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: fs/buffer.c: remove redundant initialization in alloc_page_buffers()
has been added to the -mm tree.  Its filename is
     fs-bufferc-remove-redundant-initialization-in-alloc_page_buffers.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Yan Hong <clouds.yan@xxxxxxxxx>
Subject: fs/buffer.c: remove redundant initialization in alloc_page_buffers()

buffer_head comes from kmem_cache_zalloc(), no need to zero its fields.

Signed-off-by: Yan Hong <clouds.yan@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/buffer.c |    3 ---
 1 file changed, 3 deletions(-)

diff -puN fs/buffer.c~fs-bufferc-remove-redundant-initialization-in-alloc_page_buffers fs/buffer.c
--- a/fs/buffer.c~fs-bufferc-remove-redundant-initialization-in-alloc_page_buffers
+++ a/fs/buffer.c
@@ -849,13 +849,10 @@ try_again:
 		if (!bh)
 			goto no_grow;
 
-		bh->b_bdev = NULL;
 		bh->b_this_page = head;
 		bh->b_blocknr = -1;
 		head = bh;
 
-		bh->b_state = 0;
-		atomic_set(&bh->b_count, 0);
 		bh->b_size = size;
 
 		/* Link the buffer to its page */
_

Patches currently in -mm which might be from clouds.yan@xxxxxxxxx are

linux-next.patch
fs-block_devc-need-not-to-check-inode-i_bdev-in-bd_forget.patch
writeback-fix-a-typo-in-comment.patch
fs-bufferc-do-not-inline-exported-function.patch
fs-bufferc-remove-redundant-initialization-in-alloc_page_buffers.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux