]> git.baikalelectronics.ru Git - kernel.git/commit
ext3: Replace lock/unlock_super() with an explicit lock for resizing
authorEric Sandeen <sandeen@redhat.com>
Mon, 14 Dec 2009 19:01:05 +0000 (13:01 -0600)
committerJan Kara <jack@suse.cz>
Wed, 23 Dec 2009 12:44:12 +0000 (13:44 +0100)
commit7604dd3cd5ccd58d1eec0fd173d6581ff7b7c908
tree7ceb418c1e26e682cc0c43d47efe4eb2cc639de9
parent2d37f9089026f1aa9440228a7bf1ccc58e54245a
ext3: Replace lock/unlock_super() with an explicit lock for resizing

Use a separate lock to protect s_groups_count and the other block
group descriptors which get changed via an on-line resize operation,
so we can stop overloading the use of lock_super().

Port of ext4 commit 077d5dab8641a4760fbd6798523cf4199415c650 by
Theodore Ts'o <tytso@mit.edu>.

CC: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/resize.c
fs/ext3/super.c
include/linux/ext3_fs_sb.h