]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: ext4_mark_recovery_complete() doesn't need to use lock_super
authorTheodore Ts'o <tytso@mit.edu>
Fri, 1 May 2009 05:59:42 +0000 (01:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 1 May 2009 05:59:42 +0000 (01:59 -0400)
commit8c0b8d76e2a43225cf620786edd12614691c6c13
tree3b32193dfc80a3925f5ea5a6545765f5176a6f2d
parent44eef42a6739c6eeed78186cae6ab884ad807b91
ext4: ext4_mark_recovery_complete() doesn't need to use lock_super

The function ext4_mark_recovery_complete() is called from two call
paths: either (a) while mounting the filesystem, in which case there's
no danger of any other CPU calling write_super() until the mount is
completed, and (b) while remounting the filesystem read-write, in
which case the fs core has already locked the superblock.  This also
allows us to take out a very vile unlock_super()/lock_super() pair in
ext4_remount().

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c