From: dongdong tao Date: Fri, 5 Jan 2018 13:43:29 +0000 (+0800) Subject: mds: get rid of unnecessary if condition X-Git-Tag: wip-pdonnell-testing-20180317.202121~547^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e4b6a1d1d1343a2c81652ce2bb1d792770f39d09;p=ceph-ci.git mds: get rid of unnecessary if condition Signed-off-by: dongdong tao --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 6fcc0d66711..7ba2a33ec9a 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -5621,7 +5621,7 @@ void MDCache::clean_open_file_lists() dout(10) << " unlisting unwanted/capless inode " << *in << dendl; in->item_open_file.remove_myself(); } - } else if (in->last != CEPH_NOSNAP) { + } else { if (in->client_snap_caps.empty()) { dout(10) << " unlisting flushed snap inode " << *in << dendl; in->item_open_file.remove_myself();