Skip to content

Commit

Permalink
mds: don't skip validating disk state of symlink
Browse files Browse the repository at this point in the history
we can check if backtrace is valid and check if inode number is in-use

Signed-off-by: "Yan, Zheng" <[email protected]>
  • Loading branch information
ukernel committed Nov 16, 2020
1 parent ff10bdb commit fbac6bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/mds/CInode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fbac6bc

Please sign in to comment.