X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fxfs%2Fscrub%2Fdir.c;h=5c87800ab223df02bb959ca021281f44d5e04e1b;hb=60bb8154d1d77042a5d43d335a68fdb202302cbe;hp=b9c5764e74374f69903dee6978c233c20bfa6047;hpb=e033f40be262c4d227f8fbde52856e1d8646872b;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/fs/xfs/scrub/dir.c b/fs/xfs/scrub/dir.c index b9c5764..5c87800 100644 --- a/fs/xfs/scrub/dir.c +++ b/fs/xfs/scrub/dir.c @@ -99,7 +99,7 @@ out: * we check the inode number to make sure it's sane, then we check that * we can look up this filename. Finally, we check the ftype. */ -STATIC int +STATIC bool xchk_dir_actor( struct dir_context *dir_iter, const char *name, @@ -124,7 +124,7 @@ xchk_dir_actor( xfs_dir2_dataptr_to_db(mp->m_dir_geo, pos)); if (xchk_should_terminate(sdc->sc, &error)) - return error; + return !error; /* Does this inode number make sense? */ if (!xfs_verify_dir_ino(mp, ino)) { @@ -191,8 +191,8 @@ out: * and return zero to xchk_directory. */ if (error == 0 && sdc->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) - return -EFSCORRUPTED; - return error; + return false; + return !error; } /* Scrub a directory btree record. */