]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ceph: avoid creating orphan object when checking pool permission
authorYan, Zheng <zyan@redhat.com>
Tue, 13 Dec 2016 08:03:26 +0000 (16:03 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 14 Dec 2016 21:39:04 +0000 (22:39 +0100)
commit80e80fbb584dc0d0dc894c4965bc2a199c7cd3f2
tree1ed1cb12474a097c20c23dadf9261139df083132
parentdc24de82d61b1edc3d195badd178e7875ba9398f
ceph: avoid creating orphan object when checking pool permission

Pool permission check needs to write to the first object. But for
snapshot, head of the first object may have already been deleted.
Skip the check for snapshot inode to avoid creating orphan object.

Link: http://tracker.ceph.com/issues/18211
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c