ceph: add d_drop for some error cases in ceph_mknod()
authorChengguang Xu <cgxu519@gmx.com>
Mon, 9 Jul 2018 14:17:30 +0000 (22:17 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Aug 2018 19:26:12 +0000 (21:26 +0200)
commit0459871c4995d0bd57d6b1694f0971ec5cabafc1
tree23079381371f924e08f306b7a16d46cb72a46e77
parent61ad36d47dd273b7b8c3d63fc8359d96f7976c79
ceph: add d_drop for some error cases in ceph_mknod()

When file num exceeds quota limit or fails from ceph_per_init_acls()
should call d_drop to drop dentry from cache as well.

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