Whamcloud - gitweb
LU-2430 mdd: add lfs mv to migrate inode.
[fs/lustre-release.git] / lustre / lfsck / lfsck_lib.c
index 4f05c19..5b5491a 100644 (file)
@@ -395,7 +395,8 @@ static int lfsck_create_lpf_local(const struct lu_env *env,
                GOTO(stop, rc);
 
        /* 5a. update bookmark */
-       rc = dt_declare_record_write(env, bk_obj, len, 0, th);
+       rc = dt_declare_record_write(env, bk_obj,
+                                    lfsck_buf_get(env, bk, len), 0, th);
        if (rc != 0)
                GOTO(stop, rc);
 
@@ -584,7 +585,8 @@ static int lfsck_create_lpf_remote(const struct lu_env *env,
                GOTO(stop, rc);
 
        /* 8a. update bookmark locally. */
-       rc = dt_declare_record_write(env, bk_obj, len, 0, th);
+       rc = dt_declare_record_write(env, bk_obj,
+                                    lfsck_buf_get(env, bk, len), 0, th);
        if (rc != 0)
                GOTO(stop, rc);