]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
MDS: CInode: break out of validation early on symlinks
authorGreg Farnum <gfarnum@redhat.com>
Fri, 24 Oct 2014 23:38:24 +0000 (16:38 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 7 Nov 2014 20:53:03 +0000 (12:53 -0800)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mds/CInode.cc

index 62d54e4009476ab2bba7dc68362d8eb4d383d5df..fda1f704769f57429a6cfb2a8b6ee584105248e6 100644 (file)
@@ -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