]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ext2/super.c
[PATCH] Make EXT2_DEBUG work again
[karo-tx-linux.git] / fs / ext2 / super.c
index fec55ff23deac9812726ff2f2c1ca14c5f5d5424..d4233b2e6436ec3926110bb7c5160060ba6dd239 100644 (file)
@@ -1045,6 +1045,7 @@ static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf)
        unsigned long overhead;
        int i;
 
+       lock_super(sb);
        if (test_opt (sb, MINIX_DF))
                overhead = 0;
        else {
@@ -1085,6 +1086,7 @@ static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf)
        buf->f_files = le32_to_cpu(sbi->s_es->s_inodes_count);
        buf->f_ffree = ext2_count_free_inodes (sb);
        buf->f_namelen = EXT2_NAME_LEN;
+       unlock_super(sb);
        return 0;
 }