Selaa lähdekoodia

gfs2: invalidate_inodes() is no-op there

In fill_super() we hadn't MS_ACTIVE set yet, so there won't
be any inodes with zero i_count sitting around.

In put_super() we already have MS_ACTIVE removed *and* we
had called invalidate_inodes() since then.  So again there
won't be any inodes with zero i_count...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 14 vuotta sitten
vanhempi
commit
9dcefee508
2 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 1
      fs/gfs2/ops_fstype.c
  2. 0 1
      fs/gfs2/super.c

+ 0 - 1
fs/gfs2/ops_fstype.c

@@ -1219,7 +1219,6 @@ fail_sb:
 fail_locking:
 fail_locking:
 	init_locking(sdp, &mount_gh, UNDO);
 	init_locking(sdp, &mount_gh, UNDO);
 fail_lm:
 fail_lm:
-	invalidate_inodes(sb);
 	gfs2_gl_hash_clear(sdp);
 	gfs2_gl_hash_clear(sdp);
 	gfs2_lm_unmount(sdp);
 	gfs2_lm_unmount(sdp);
 fail_sys:
 fail_sys:

+ 0 - 1
fs/gfs2/super.c

@@ -857,7 +857,6 @@ restart:
 	gfs2_clear_rgrpd(sdp);
 	gfs2_clear_rgrpd(sdp);
 	gfs2_jindex_free(sdp);
 	gfs2_jindex_free(sdp);
 	/*  Take apart glock structures and buffer lists  */
 	/*  Take apart glock structures and buffer lists  */
-	invalidate_inodes(sdp->sd_vfs);
 	gfs2_gl_hash_clear(sdp);
 	gfs2_gl_hash_clear(sdp);
 	/*  Unmount the locking protocol  */
 	/*  Unmount the locking protocol  */
 	gfs2_lm_unmount(sdp);
 	gfs2_lm_unmount(sdp);