diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index f2e8c4aa0fd2..2ede7e2c7019 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -2460,6 +2460,7 @@ static int ext4_statfs (struct dentry * dentry, struct kstatfs * buf) | |||
2460 | struct ext4_super_block *es = sbi->s_es; | 2460 | struct ext4_super_block *es = sbi->s_es; |
2461 | ext4_fsblk_t overhead; | 2461 | ext4_fsblk_t overhead; |
2462 | int i; | 2462 | int i; |
2463 | u64 fsid; | ||
2463 | 2464 | ||
2464 | if (test_opt (sb, MINIX_DF)) | 2465 | if (test_opt (sb, MINIX_DF)) |
2465 | overhead = 0; | 2466 | overhead = 0; |
@@ -2506,6 +2507,10 @@ static int ext4_statfs (struct dentry * dentry, struct kstatfs * buf) | |||
2506 | buf->f_files = le32_to_cpu(es->s_inodes_count); | 2507 | buf->f_files = le32_to_cpu(es->s_inodes_count); |
2507 | buf->f_ffree = percpu_counter_sum(&sbi->s_freeinodes_counter); | 2508 | buf->f_ffree = percpu_counter_sum(&sbi->s_freeinodes_counter); |
2508 | buf->f_namelen = EXT4_NAME_LEN; | 2509 | buf->f_namelen = EXT4_NAME_LEN; |
2510 | fsid = le64_to_cpup((void *)es->s_uuid) ^ | ||
2511 | le64_to_cpup((void *)es->s_uuid + sizeof(u64)); | ||
2512 | buf->f_fsid.val[0] = fsid & 0xFFFFFFFFUL; | ||
2513 | buf->f_fsid.val[1] = (fsid >> 32) & 0xFFFFFFFFUL; | ||
2509 | return 0; | 2514 | return 0; |
2510 | } | 2515 | } |
2511 | 2516 | ||