reiserfs: delay reiserfs lock until journal initialization
In the mount path, transactions that are made before journal initialization don't involve the filesystem. We can delay the reiserfs lock until we play with the journal. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christoph Hellwig <hch@lst.de> Cc: Jeff Mahoney <jeffm@suse.com> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b18c1c6e0c
commit
f32485be83
@@ -1364,10 +1364,7 @@ int reiserfs_init_bitmap_cache(struct super_block *sb)
|
||||
struct reiserfs_bitmap_info *bitmap;
|
||||
unsigned int bmap_nr = reiserfs_bmap_count(sb);
|
||||
|
||||
/* Avoid lock recursion in fault case */
|
||||
reiserfs_write_unlock(sb);
|
||||
bitmap = vmalloc(sizeof(*bitmap) * bmap_nr);
|
||||
reiserfs_write_lock(sb);
|
||||
if (bitmap == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Reference in New Issue
Block a user