]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix dentry leak when failing to init debugfs
authorChengguang Xu <cgxu519@icloud.com>
Fri, 9 Feb 2018 12:40:59 +0000 (20:40 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 26 Feb 2018 15:20:07 +0000 (16:20 +0100)
commitd3e9200f154f1110911cae28ab64236bc81df2dd
treef9cccd9207dda67d143d000a3464a9469853f2ca
parent595f97fbf92f9d6a8dc784c7079d0c5a982837ee
ceph: fix dentry leak when failing to init debugfs

When failing from ceph_fs_debugfs_init() in ceph_real_mount(),
there is lack of dput of root_dentry and it causes slab errors,
so change the calling order of ceph_fs_debugfs_init() and
open_root_dentry() and do some cleanups to avoid this issue.

Signed-off-by: Chengguang Xu <cgxu519@icloud.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.c