X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_objects.c;h=326272234babc6e649af0280c141cbe6bc77d6b8;hp=f6fd068d0ddf8a1b7efd47b4528efa11f2b08a96;hb=ccadcfd3940040465a59a13367f0d79a823625bd;hpb=51f5621c04b363dcde7e1bb3dcdb2ebd3b2919fd diff --git a/lustre/ofd/ofd_objects.c b/lustre/ofd/ofd_objects.c index f6fd068..3262722 100644 --- a/lustre/ofd/ofd_objects.c +++ b/lustre/ofd/ofd_objects.c @@ -43,6 +43,7 @@ #include #include +#include #include "ofd_internal.h" @@ -295,6 +296,14 @@ int ofd_precreate_objects(const struct lu_env *env, struct ofd_device *ofd, fo = batch[i]; LASSERT(fo); + /* Only the new created objects need to be recorded. */ + if (ofd->ofd_osd->dd_record_fid_accessed) { + lfsck_pack_rfa(&ofd_info(env)->fti_lr, + lu_object_fid(&fo->ofo_obj.do_lu)); + lfsck_in_notify(env, ofd->ofd_osd, + &ofd_info(env)->fti_lr); + } + if (likely(!ofd_object_exists(fo) && !OBD_FAIL_CHECK(OBD_FAIL_LFSCK_DANGLING))) { next = ofd_object_child(fo);