Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139761
b: refs/heads/master
c: 604d295
h: refs/heads/master
i:
  139759: 9b8a62b
v: v3
  • Loading branch information
Coly Li authored and Linus Torvalds committed Apr 3, 2009
1 parent ee47843 commit 7cf61e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25564dd869d8615e80b70b37de7545bd21de3c7c
refs/heads/master: 604d295c26f2229636c7fa4eba33af017c3b70e3
3 changes: 3 additions & 0 deletions trunk/fs/hpfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ static int hpfs_statfs(struct dentry *dentry, struct kstatfs *buf)
{
struct super_block *s = dentry->d_sb;
struct hpfs_sb_info *sbi = hpfs_sb(s);
u64 id = huge_encode_dev(s->s_bdev->bd_dev);
lock_kernel();

/*if (sbi->sb_n_free == -1) {*/
Expand All @@ -149,6 +150,8 @@ static int hpfs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_bavail = sbi->sb_n_free;
buf->f_files = sbi->sb_dirband_size / 4;
buf->f_ffree = sbi->sb_n_free_dnodes;
buf->f_fsid.val[0] = (u32)id;
buf->f_fsid.val[1] = (u32)(id >> 32);
buf->f_namelen = 254;

unlock_kernel();
Expand Down

0 comments on commit 7cf61e6

Please sign in to comment.