Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139753
b: refs/heads/master
c: accb401
h: refs/heads/master
i:
  139751: 20f1cd1
v: v3
  • Loading branch information
Coly Li authored and Linus Torvalds committed Apr 3, 2009
1 parent 65c5f11 commit acdd58d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10c7db279218eda4b19d29ee17db8a815b18d564
refs/heads/master: accb40122040374e97fdf4bb81bdc9316b52c756
16 changes: 10 additions & 6 deletions trunk/fs/adfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,20 @@ static int adfs_remount(struct super_block *sb, int *flags, char *data)

static int adfs_statfs(struct dentry *dentry, struct kstatfs *buf)
{
struct adfs_sb_info *asb = ADFS_SB(dentry->d_sb);
struct super_block *sb = dentry->d_sb;
struct adfs_sb_info *sbi = ADFS_SB(sb);
u64 id = huge_encode_dev(sb->s_bdev->bd_dev);

buf->f_type = ADFS_SUPER_MAGIC;
buf->f_namelen = asb->s_namelen;
buf->f_bsize = dentry->d_sb->s_blocksize;
buf->f_blocks = asb->s_size;
buf->f_files = asb->s_ids_per_zone * asb->s_map_size;
buf->f_namelen = sbi->s_namelen;
buf->f_bsize = sb->s_blocksize;
buf->f_blocks = sbi->s_size;
buf->f_files = sbi->s_ids_per_zone * sbi->s_map_size;
buf->f_bavail =
buf->f_bfree = adfs_map_free(dentry->d_sb);
buf->f_bfree = adfs_map_free(sb);
buf->f_ffree = (long)(buf->f_bfree * buf->f_files) / (long)buf->f_blocks;
buf->f_fsid.val[0] = (u32)id;
buf->f_fsid.val[1] = (u32)(id >> 32);

return 0;
}
Expand Down

0 comments on commit acdd58d

Please sign in to comment.