smbd: use fh_[get|set]_pos() and fh_[get|set]_position_information()
[samba.git] / source3 / modules / vfs_commit.c
index f5514bc607f399991477f305ca03a303a58932b7..a933a5982e50954fa5e3ffcd195b1ea0f4c9f93d 100644 (file)
@@ -327,7 +327,9 @@ static void commit_pwrite_written(struct tevent_req *subreq)
         * Ok, this is a sync fake. We should make the sync async as well, but
         * I'm too lazy for that right now -- vl
         */
-       commit_ret = commit(state->handle, state->fsp, state->fsp->fh->pos,
+       commit_ret = commit(state->handle,
+                           state->fsp,
+                           fh_get_pos(state->fsp->fh),
                            state->ret);
 
        if (commit_ret == -1) {