diff options
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r-- | fs/ext2/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index fec55ff23dea..d4233b2e6436 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -1045,6 +1045,7 @@ static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf) | |||
1045 | unsigned long overhead; | 1045 | unsigned long overhead; |
1046 | int i; | 1046 | int i; |
1047 | 1047 | ||
1048 | lock_super(sb); | ||
1048 | if (test_opt (sb, MINIX_DF)) | 1049 | if (test_opt (sb, MINIX_DF)) |
1049 | overhead = 0; | 1050 | overhead = 0; |
1050 | else { | 1051 | else { |
@@ -1085,6 +1086,7 @@ static int ext2_statfs (struct dentry * dentry, struct kstatfs * buf) | |||
1085 | buf->f_files = le32_to_cpu(sbi->s_es->s_inodes_count); | 1086 | buf->f_files = le32_to_cpu(sbi->s_es->s_inodes_count); |
1086 | buf->f_ffree = ext2_count_free_inodes (sb); | 1087 | buf->f_ffree = ext2_count_free_inodes (sb); |
1087 | buf->f_namelen = EXT2_NAME_LEN; | 1088 | buf->f_namelen = EXT2_NAME_LEN; |
1089 | unlock_super(sb); | ||
1088 | return 0; | 1090 | return 0; |
1089 | } | 1091 | } |
1090 | 1092 | ||