]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: properly trim unlinked inode 7297/head
authorYan, Zheng <zyan@redhat.com>
Wed, 20 Jan 2016 14:22:01 +0000 (22:22 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 20 Jan 2016 14:34:49 +0000 (22:34 +0800)
commitd74a7c10fe08ae884a1f552e321b8cb26969bce4
tree280dbf2c0148e0cd76cc6009e6508e80ce524206
parente7107f87151e9674502088bbe2d183ff4528647f
client: properly trim unlinked inode

Client should trim inode from its cache when receiving a cap message
with nlink == 0. But the corresponding code has a bug, it does nothing
when inode's nlink is already 0.

Fixes: #13903
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc