]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix mksnap crash
authorYan, Zheng <zyan@redhat.com>
Wed, 10 Dec 2014 08:17:31 +0000 (16:17 +0800)
committerIlya Dryomov <idryomov@redhat.com>
Wed, 17 Dec 2014 17:09:53 +0000 (20:09 +0300)
commit790eeaf41dc0d0bd5b4e441ceb87224605a5970e
tree2006c149b55ade7a1466bc82882433448191ba38
parentf10a14ab1dad6205e60b41f0b7b936705f443712
ceph: fix mksnap crash

mksnap reply only contain 'target', does not contain 'dentry'. So
it's wrong to use req->r_reply_info.head->is_dentry to detect traceless
reply.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
fs/ceph/dir.c