projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee991d
)
[JFFS2] Fill in f_fsid field in jffs2_statfs()
author
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 18 Aug 2008 15:23:53 +0000
(16:23 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 18 Aug 2008 15:23:53 +0000
(16:23 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/fs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/jffs2/fs.c
b/fs/jffs2/fs.c
index 086c4383022181f3624f333143daf9d5ddf99081..89e9b735d8dfa9613f4c560c6f20a3c3629bbe1a 100644
(file)
--- a/
fs/jffs2/fs.c
+++ b/
fs/jffs2/fs.c
@@
-207,6
+207,8
@@
int jffs2_statfs(struct dentry *dentry, struct kstatfs *buf)
buf->f_files = 0;
buf->f_ffree = 0;
buf->f_namelen = JFFS2_MAX_NAME_LEN;
+ buf->f_fsid.val[0] = JFFS2_SUPER_MAGIC;
+ buf->f_fsid.val[1] = c->mtd->index;
spin_lock(&c->erase_completion_lock);
avail = c->dirty_size + c->free_size;