From: Greg Farnum Date: Fri, 24 Oct 2014 23:38:24 +0000 (-0700) Subject: MDS: CInode: break out of validation early on symlinks X-Git-Tag: v0.89~50^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=07e0831cd500fce191af424a124970ad7257866d;p=ceph.git MDS: CInode: break out of validation early on symlinks Signed-off-by: Greg Farnum --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 62d54e40094..fda1f704769 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -3512,6 +3512,11 @@ 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! + results->passed_validation = true; + return true; + } results->passed_validation = false; // we haven't finished it yet