From e4b6a1d1d1343a2c81652ce2bb1d792770f39d09 Mon Sep 17 00:00:00 2001 From: dongdong tao Date: Fri, 5 Jan 2018 21:43:29 +0800 Subject: [PATCH] mds: get rid of unnecessary if condition Signed-off-by: dongdong tao --- src/mds/MDCache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.3