diff options
-rw-r--r-- | fs/ext3/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 9856565d4ddc..8ab198133357 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -2387,6 +2387,7 @@ static int ext3_statfs (struct dentry * dentry, struct kstatfs * buf) | |||
2387 | struct ext3_super_block *es = sbi->s_es; | 2387 | struct ext3_super_block *es = sbi->s_es; |
2388 | ext3_fsblk_t overhead; | 2388 | ext3_fsblk_t overhead; |
2389 | int i; | 2389 | int i; |
2390 | u64 fsid; | ||
2390 | 2391 | ||
2391 | if (test_opt (sb, MINIX_DF)) | 2392 | if (test_opt (sb, MINIX_DF)) |
2392 | overhead = 0; | 2393 | overhead = 0; |
@@ -2433,6 +2434,10 @@ static int ext3_statfs (struct dentry * dentry, struct kstatfs * buf) | |||
2433 | buf->f_files = le32_to_cpu(es->s_inodes_count); | 2434 | buf->f_files = le32_to_cpu(es->s_inodes_count); |
2434 | buf->f_ffree = percpu_counter_sum(&sbi->s_freeinodes_counter); | 2435 | buf->f_ffree = percpu_counter_sum(&sbi->s_freeinodes_counter); |
2435 | buf->f_namelen = EXT3_NAME_LEN; | 2436 | buf->f_namelen = EXT3_NAME_LEN; |
2437 | fsid = le64_to_cpup((void *)es->s_uuid) ^ | ||
2438 | le64_to_cpup((void *)es->s_uuid + sizeof(u64)); | ||
2439 | buf->f_fsid.val[0] = fsid & 0xFFFFFFFFUL; | ||
2440 | buf->f_fsid.val[1] = (fsid >> 32) & 0xFFFFFFFFUL; | ||
2436 | return 0; | 2441 | return 0; |
2437 | } | 2442 | } |
2438 | 2443 | ||