]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore::_do_fiemap: do not reference fiemap after it is freed 11615/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 06:48:11 +0000 (14:48 +0800)
committeryaoning <yaoning@unitedstack.com>
Fri, 2 Dec 2016 08:26:51 +0000 (16:26 +0800)
commit7106f426c96978a0a41e9d1482239a4da505157e
treeac9f872d049f2afa76dea29157380870b743e27b
parentd1e1207275eeaf2409b435236c579116900eb6b7
FileStore::_do_fiemap: do not reference fiemap after it is freed

`last` points to fiemap::fm_extends[n], and if fiemap gets freed, we can
not reference any of its fieldis. so we could remember the check result before
freeing it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c3748fa7737b6c43de2dae5d957fcff01322515c)

Conflicts:
src/os/FileStore.cc
put the parameter is_last in the right place
src/os/FileStore.cc