]> git.baikalelectronics.ru Git - kernel.git/commit
cuse: fix fuse_conn_kill()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 30 Aug 2012 17:24:34 +0000 (19:24 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 30 Aug 2012 17:24:34 +0000 (19:24 +0200)
commitae48f123bdd08b40f370c682caf5df4bcd8154c6
tree7df386d3b784415f11f242f162499bb23ee5f5de
parentb606b61489dced42a88c3f6bff0b74f751da4b86
cuse: fix fuse_conn_kill()

fuse_conn_kill() removed fc->entry, called fuse_ctl_remove_conn() and
fuse_bdi_destroy().  None of which is appropriate for cuse cleanup.

The fuse_ctl_remove_conn() decrements the nlink on the control filesystem, which
is totally bogus.  The others are harmless but unnecessary.

So move these out from fuse_conn_kill() to fuse_put_super() where they belong.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/inode.c