reiserfs: remove stray unlock_super in reiserfs_resize
authorChristoph Hellwig <hch@lst.de>
Fri, 19 Jun 2009 08:30:07 +0000 (10:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Jun 2009 12:15:24 +0000 (08:15 -0400)
Reiserfs doesn't use lock_super anywhere internally, and ->remount_fs
which calls reiserfs_resize does have it currently but also expects it
to be held on return, so there's no business for the unlock_super here.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked by Edward Shishkin <edward.shishkin@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/reiserfs/resize.c

index 238e9d9b31e04bf877f1644630990672d1c5daba..18b315d3d104ea0cebfbb5a1991356038dc8c4fd 100644 (file)
@@ -82,7 +82,6 @@ int reiserfs_resize(struct super_block *s, unsigned long block_count_new)
                if (reiserfs_allocate_list_bitmaps(s, jbitmap, bmap_nr_new) < 0) {
                        printk
                            ("reiserfs_resize: unable to allocate memory for journal bitmaps\n");
-                       unlock_super(s);
                        return -ENOMEM;
                }
                /* the new journal bitmaps are zero filled, now we copy in the bitmap