Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109723
b: refs/heads/master
c: 7c7cbad
h: refs/heads/master
i:
  109721: 3ec5b4e
  109719: daf533a
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Sep 3, 2008
1 parent efac95f commit 3f6a324
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: b3385c278d3c32aec68d4900b35bc07df1b2240c
refs/heads/master: 7c7cbadf7341a0792879c67d6e3020f040d6cd7f
5 changes: 3 additions & 2 deletions trunk/fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf)
{
struct ubifs_info *c = dentry->d_sb->s_fs_info;
unsigned long long free;
__le32 *uuid = (__le32 *)c->uuid;

free = ubifs_get_free_space(c);
dbg_gen("free space %lld bytes (%lld blocks)",
Expand All @@ -386,8 +387,8 @@ static int ubifs_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_files = 0;
buf->f_ffree = 0;
buf->f_namelen = UBIFS_MAX_NLEN;
memcpy(&buf->f_fsid, c->uuid, sizeof(__kernel_fsid_t));

buf->f_fsid.val[0] = le32_to_cpu(uuid[0]) ^ le32_to_cpu(uuid[2]);
buf->f_fsid.val[1] = le32_to_cpu(uuid[1]) ^ le32_to_cpu(uuid[3]);
return 0;
}

Expand Down

0 comments on commit 3f6a324

Please sign in to comment.