]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ext3/ialloc.c
[PATCH] ext3: sparse fixes
[karo-tx-linux.git] / fs / ext3 / ialloc.c
index 6549945f9ac156ae0523108ffc3b8bfc0cd88448..df3f517c54aca4b9bc3b41e9286cab7166ecd3e6 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <asm/byteorder.h>
 
+#include "bitmap.h"
 #include "xattr.h"
 #include "acl.h"
 
@@ -704,7 +705,6 @@ unsigned long ext3_count_free_inodes (struct super_block * sb)
        unsigned long bitmap_count, x;
        struct buffer_head *bitmap_bh = NULL;
 
-       lock_super (sb);
        es = EXT3_SB(sb)->s_es;
        desc_count = 0;
        bitmap_count = 0;
@@ -727,7 +727,6 @@ unsigned long ext3_count_free_inodes (struct super_block * sb)
        brelse(bitmap_bh);
        printk("ext3_count_free_inodes: stored = %u, computed = %lu, %lu\n",
                le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count);
-       unlock_super(sb);
        return desc_count;
 #else
        desc_count = 0;