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);
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);