All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext2:delete two redundant assignments
@ 2010-05-12  3:07 
  0 siblings, 0 replies; only message in thread
From:  @ 2010-05-12  3:07 UTC (permalink / raw)
  To: kernel-janitors

es->s_free_blocks_count and es->s_free_inodes_count are assigned in
ext2_sync_super().

Signed-off-by: Peter Pan <wppan@redflag-linux.com>
---
  fs/ext2/super.c |    4 ----
  1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 42e4a30..1cf58aa 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -1182,10 +1182,6 @@ static int ext2_sync_fs(struct super_block *sb, 
int wait)
  	if (es->s_state & cpu_to_le16(EXT2_VALID_FS)) {
  		ext2_debug("setting valid to 0\n");
  		es->s_state &= cpu_to_le16(~EXT2_VALID_FS);
-		es->s_free_blocks_count -			cpu_to_le32(ext2_count_free_blocks(sb));
-		es->s_free_inodes_count -			cpu_to_le32(ext2_count_free_inodes(sb));
  		es->s_mtime = cpu_to_le32(get_seconds());
  		ext2_sync_super(sb, es);
  	} else {
-- 
1.6.6



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-12  3:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12  3:07 [PATCH] ext2:delete two redundant assignments 

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.