Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42763
b: refs/heads/master
c: 50ee0a3
h: refs/heads/master
i:
  42761: ed8c42c
  42759: 58cb65a
v: v3
  • Loading branch information
Pekka Enberg authored and Linus Torvalds committed Dec 7, 2006
1 parent 4fa5120 commit 7591996
Show file tree
Hide file tree
Showing 2 changed files with 6 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: e4fca01ea2b41c41a82f4ca3537f6ebc237adde5
refs/heads/master: 50ee0a32b192902e32a2b596df7ec3496c4bf485
5 changes: 5 additions & 0 deletions trunk/fs/ext3/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2387,6 +2387,7 @@ static int ext3_statfs (struct dentry * dentry, struct kstatfs * buf)
struct ext3_super_block *es = sbi->s_es;
ext3_fsblk_t overhead;
int i;
u64 fsid;

if (test_opt (sb, MINIX_DF))
overhead = 0;
Expand Down Expand Up @@ -2433,6 +2434,10 @@ static int ext3_statfs (struct dentry * dentry, struct kstatfs * buf)
buf->f_files = le32_to_cpu(es->s_inodes_count);
buf->f_ffree = percpu_counter_sum(&sbi->s_freeinodes_counter);
buf->f_namelen = EXT3_NAME_LEN;
fsid = le64_to_cpup((void *)es->s_uuid) ^
le64_to_cpup((void *)es->s_uuid + sizeof(u64));
buf->f_fsid.val[0] = fsid & 0xFFFFFFFFUL;
buf->f_fsid.val[1] = (fsid >> 32) & 0xFFFFFFFFUL;
return 0;
}

Expand Down

0 comments on commit 7591996

Please sign in to comment.