Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139756
b: refs/heads/master
c: 94ea77a
h: refs/heads/master
v: v3
  • Loading branch information
Coly Li authored and Linus Torvalds committed Apr 3, 2009
1 parent d3a5c2e commit 638d77d
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: 8587246a004d6ac10aa12c10e3474cfd9dafa44a
refs/heads/master: 94ea77ac696d76522ad32a51e84a969f83284eda
3 changes: 3 additions & 0 deletions trunk/fs/cramfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
static int cramfs_statfs(struct dentry *dentry, struct kstatfs *buf)
{
struct super_block *sb = dentry->d_sb;
u64 id = huge_encode_dev(sb->s_bdev->bd_dev);

buf->f_type = CRAMFS_MAGIC;
buf->f_bsize = PAGE_CACHE_SIZE;
Expand All @@ -326,6 +327,8 @@ static int cramfs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_bavail = 0;
buf->f_files = CRAMFS_SB(sb)->files;
buf->f_ffree = 0;
buf->f_fsid.val[0] = (u32)id;
buf->f_fsid.val[1] = (u32)(id >> 32);
buf->f_namelen = CRAMFS_MAXPATHLEN;
return 0;
}
Expand Down

0 comments on commit 638d77d

Please sign in to comment.