lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1402047084-3844-1-git-send-email-chishanmingshen@gmail.com>
Date:	Fri,  6 Jun 2014 17:31:24 +0800
From:	chishanmingshen <chishanmingshen@...il.com>
To:	Alexander Viro <viro@...iv.linux.org.uk>
Cc:	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
	chishanmingshen <chishanmingshen@...il.com>
Subject: [RFC 1/1] vfs: del redundant BH_new flag on unrelated buffer heads.

Just skip the unrelated buffer heads when clear buffer head's BH_new flag.
This patch is *untested*.

Signed-off-by: chishanmingshen <chishanmingshen@...il.com>
---
 fs/buffer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 9ddb9fc..a28a1a1 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -1987,8 +1987,8 @@ static int __block_commit_write(struct inode *inode, struct page *page,
 		} else {
 			set_buffer_uptodate(bh);
 			mark_buffer_dirty(bh);
+			clear_buffer_new(bh);
 		}
-		clear_buffer_new(bh);
 
 		block_start = block_end;
 		bh = bh->b_this_page;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ