Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75caf6b5 authored by David Woodhouse's avatar David Woodhouse
Browse files

[JFFS2] Fill in f_fsid field in jffs2_statfs()

parent 8ee991dd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;