From 07e0831cd500fce191af424a124970ad7257866d Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 24 Oct 2014 16:38:24 -0700 Subject: [PATCH] MDS: CInode: break out of validation early on symlinks Signed-off-by: Greg Farnum --- src/mds/CInode.cc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.3