]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: get rid of unnecessary if condition
authordongdong tao <tdd21151186@gmail.com>
Fri, 5 Jan 2018 13:43:29 +0000 (21:43 +0800)
committerdongdong tao <tdd21151186@gmail.com>
Sat, 6 Jan 2018 11:29:38 +0000 (19:29 +0800)
Signed-off-by: dongdong tao <tdd21151186@gmail.com>
src/mds/MDCache.cc

index 6fcc0d66711a9331ea33c2aaa18b63226d7ee403..7ba2a33ec9a1804ddb22dfc3918f5ffa6f50fe66 100644 (file)
@@ -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();