android_kernel_xiaomi_sm8350/fs/fuse
Miklos Szeredi 03fb0bce01 fuse: fix bdi naming conflict
Fuse allocates a separate bdi for each filesystem, and registers them
in sysfs with "MAJOR:MINOR" of sb->s_dev (st_dev).  This works fine for
anon devices normally used by fuse, but can conflict with an already
registered BDI for "fuseblk" filesystems, where sb->s_dev represents a
real block device.  In particularl this happens if a non-partitioned
device is being mounted.

Fix by registering with a different name for "fuseblk" filesystems.

Thanks to Ioan Ionita for the bug report.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reported-by: Ioan Ionita <opslynx@gmail.com>
Tested-by: Ioan Ionita <opslynx@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-24 09:56:07 -07:00
..
control.c mm: bdi: expose the BDI object in sysfs for FUSE 2008-04-30 08:29:49 -07:00
dev.c fuse: fix sparse warnings 2008-04-30 08:29:51 -07:00
dir.c fuse: update file size on short read 2008-04-30 08:29:50 -07:00
file.c fuse: add flag to turn on big writes 2008-05-13 08:02:26 -07:00
fuse_i.h fuse: add flag to turn on big writes 2008-05-13 08:02:26 -07:00
inode.c fuse: fix bdi naming conflict 2008-05-24 09:56:07 -07:00
Makefile [PATCH] fuse: add control filesystem 2006-06-25 10:01:19 -07:00