]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't skip validating disk state of symlink
authorYan, Zheng <zyan@redhat.com>
Wed, 24 Jun 2020 10:46:41 +0000 (18:46 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 16 Nov 2020 01:02:18 +0000 (09:02 +0800)
we can check if backtrace is valid and check if inode number is in-use

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/CInode.cc

index 9d3dd85e739693fab35d44552f79f4fe7f04d9bb..182c77b0c7b67d4b62ed702075d627fb23904332 100644 (file)
@@ -4639,10 +4639,6 @@ void CInode::validate_disk_state(CInode::validated_data *results,
        dout(20) << "validating a dirty CInode; results will be inconclusive"
          << dendl;
       }
-      if (in->is_symlink()) {
-       // there's nothing to do for symlinks!
-       return true;
-      }
 
       C_OnFinisher *conf = new C_OnFinisher(get_io_callback(BACKTRACE),
                                            in->mdcache->mds->finisher);