Whamcloud - gitweb
LU-16608 tests: Reduce lock count in 255c
[fs/lustre-release.git] / lustre / lfsck / lfsck_bookmark.c
index 76b6f11..88753b1 100644 (file)
@@ -20,7 +20,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2013, 2015, Intel Corporation.
+ * Copyright (c) 2013, 2017, Intel Corporation.
  */
 /*
  * lustre/lfsck/lfsck_bookmark.c
@@ -33,7 +33,7 @@
 #include <lu_object.h>
 #include <dt_object.h>
 #include <lustre_fid.h>
-#include <lustre/lustre_user.h>
+#include <lu_target.h>
 
 #include "lfsck_internal.h"
 
@@ -167,7 +167,7 @@ int lfsck_bookmark_setup(const struct lu_env *env,
        if (IS_ERR(root))
                RETURN(PTR_ERR(root));
 
-       if (unlikely(!dt_try_as_dir(env, root))) {
+       if (unlikely(!dt_try_as_dir(env, root, true))) {
                lfsck_object_put(env, root);
 
                RETURN(-ENOTDIR);