diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2008-08-18 16:23:53 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-08-18 16:23:53 +0100 |
commit | 75caf6b5acc6b895df9bdd36db631220e1096e9f (patch) | |
tree | 74b197075f640f538bdc76d1cb21cc9abb807ca0 /fs/jffs2/fs.c | |
parent | 8ee991dd343df57910ff6947696afada9f02bf7e (diff) | |
download | lwn-75caf6b5acc6b895df9bdd36db631220e1096e9f.tar.gz lwn-75caf6b5acc6b895df9bdd36db631220e1096e9f.zip |
[JFFS2] Fill in f_fsid field in jffs2_statfs()
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/jffs2/fs.c')
-rw-r--r-- | fs/jffs2/fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index 086c43830221..89e9b735d8df 100644 --- 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; |