linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] ext4: remove unsafe and unnecessary memset()
@ 2012-11-30  6:41 Guo Chao
  2012-11-30  6:41 ` [PATCH 2/4] ext4: use sync_inode_metadata() when sync inode metadata Guo Chao
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Guo Chao @ 2012-11-30  6:41 UTC (permalink / raw)
  To: tytso; +Cc: linux-ext4

We memset this page before checking whether it's valid. But we need
not memset zeroed page at all.

Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
---
 fs/ext4/super.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index ad6cd8a..66a4e20 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3206,7 +3206,6 @@ int ext4_calculate_overhead(struct super_block *sb)
 	ext4_fsblk_t overhead = 0;
 	char *buf = (char *) get_zeroed_page(GFP_KERNEL);
 
-	memset(buf, 0, PAGE_SIZE);
 	if (!buf)
 		return -ENOMEM;
 
-- 
1.7.9.5


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

end of thread, other threads:[~2012-12-03  5:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-30  6:41 [PATCH 1/4] ext4: remove unsafe and unnecessary memset() Guo Chao
2012-11-30  6:41 ` [PATCH 2/4] ext4: use sync_inode_metadata() when sync inode metadata Guo Chao
2012-11-30 13:24   ` Lukáš Czerner
2012-12-03  4:51   ` Theodore Ts'o
2012-11-30  6:41 ` [PATCH 3/4] ext4: remove redundant code in ext4_alloc_inode() Guo Chao
2012-11-30 13:32   ` Lukáš Czerner
2012-12-03  4:57   ` Theodore Ts'o
2012-11-30  6:41 ` [PATCH 4/4] ext4: remove redundant initialization in ext4_fill_super() Guo Chao
2012-11-30 13:37   ` Lukáš Czerner
2012-12-03  5:01   ` Theodore Ts'o
2012-11-30 13:20 ` [PATCH 1/4] ext4: remove unsafe and unnecessary memset() Lukáš Czerner
2012-11-30 14:04   ` Lukáš Czerner
2012-12-03  2:47     ` Guo Chao

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).