]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileStore::_do_fiemap: do not reference fiemap after it is freed 12148/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 06:48:11 +0000 (14:48 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Nov 2016 07:00:30 +0000 (15:00 +0800)
commitc3748fa7737b6c43de2dae5d957fcff01322515c
treebf77b69005221457526e414135963c014aa747b9
parenta7a39a207f5c352c08ddb520db038c07a8cd8162
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>
src/os/filestore/FileStore.cc