diff options
Diffstat (limited to 'fs/nilfs2/super.c')
-rw-r--r-- | fs/nilfs2/super.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index e117e1ea9bff..8a965f9523aa 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -476,11 +476,12 @@ static int nilfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
476 | { | 476 | { |
477 | struct super_block *sb = dentry->d_sb; | 477 | struct super_block *sb = dentry->d_sb; |
478 | struct nilfs_sb_info *sbi = NILFS_SB(sb); | 478 | struct nilfs_sb_info *sbi = NILFS_SB(sb); |
479 | struct the_nilfs *nilfs = sbi->s_nilfs; | ||
480 | u64 id = huge_encode_dev(sb->s_bdev->bd_dev); | ||
479 | unsigned long long blocks; | 481 | unsigned long long blocks; |
480 | unsigned long overhead; | 482 | unsigned long overhead; |
481 | unsigned long nrsvblocks; | 483 | unsigned long nrsvblocks; |
482 | sector_t nfreeblocks; | 484 | sector_t nfreeblocks; |
483 | struct the_nilfs *nilfs = sbi->s_nilfs; | ||
484 | int err; | 485 | int err; |
485 | 486 | ||
486 | /* | 487 | /* |
@@ -514,6 +515,9 @@ static int nilfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
514 | buf->f_files = atomic_read(&sbi->s_inodes_count); | 515 | buf->f_files = atomic_read(&sbi->s_inodes_count); |
515 | buf->f_ffree = 0; /* nilfs_count_free_inodes(sb); */ | 516 | buf->f_ffree = 0; /* nilfs_count_free_inodes(sb); */ |
516 | buf->f_namelen = NILFS_NAME_LEN; | 517 | buf->f_namelen = NILFS_NAME_LEN; |
518 | buf->f_fsid.val[0] = (u32)id; | ||
519 | buf->f_fsid.val[1] = (u32)(id >> 32); | ||
520 | |||
517 | return 0; | 521 | return 0; |
518 | } | 522 | } |
519 | 523 | ||