[PATCH] fuse: fix bug in control filesystem mount
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 29 Jan 2007 21:19:54 +0000 (13:19 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 30 Jan 2007 16:26:45 +0000 (08:26 -0800)
commitff79544754631cf3d237ff47b7d0e7ab2d211fcf
treeaec89c9cfbe2f0652b121188d6cefadd11dcf881
parent436d1654b341e55a73cada13cce3142b619f23bb
[PATCH] fuse: fix bug in control filesystem mount

The BUG in fuse_ctl_add_dentry() could be triggered if the control
filesystem was unmounted and mounted again while one or more fuse
filesystems were present.

The fix is to reset the dentry counter in fuse_ctl_kill_sb().

Bug reported by Florent Mertens.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/control.c