UBIFS: use anonymous device
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 May 2009 16:23:04 +0000 (19:23 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 26 May 2009 09:44:52 +0000 (12:44 +0300)
UBIFS has erroneuosly set 'sb->s_dev' to the UBI volume
character device major/minor. This may lead to clashes
if there is another FS mounted to a block device with
the same major/minor numbers. User-space programs which
use 'stat->st_dev' may get confused because of this.

This problem was found by Al Viro. He also pointed the
way to fix the problem - use 'set_anon_super()' and
'kill_anon_super()' VFS helpers.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found