]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: do not destroy ext4_groupinfo_caches if ext4_mb_init() fails
authorAndrey Tsyvarev <tsyvarev@ispras.ru>
Mon, 12 May 2014 16:34:21 +0000 (12:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 May 2014 16:34:21 +0000 (12:34 -0400)
commit89f43e20a7ba68997ff7c3391a4e745624c4580a
tree48af4a9fbc52c0c62a3931eb4aa95dc34ef1e076
parent499a741fe77c042f6a899c71203e16bf1f22ddff
ext4: do not destroy ext4_groupinfo_caches if ext4_mb_init() fails

Caches from 'ext4_groupinfo_caches' may be in use by other mounts,
which have already existed.  So, it is incorrect to destroy them when
newly requested mount fails.

Found by Linux File System Verification project (linuxtesting.org).

Signed-off-by: Andrey Tsyvarev <tsyvarev@ispras.ru>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
fs/ext4/mballoc.c