From bb05b187b63e9e61745b1ca77640a41c257a741f Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 13 Oct 2017 20:50:08 -0400 Subject: [PATCH] lib/deltas: Use fastpath for regfile writes for bare-user-only Noticed this omission while looking at the code while working on another patch. Closes: #1270 Approved by: jlebon --- src/libostree/ostree-repo-static-delta-processing.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libostree/ostree-repo-static-delta-processing.c b/src/libostree/ostree-repo-static-delta-processing.c index 84fed682..6596da89 100644 --- a/src/libostree/ostree-repo-static-delta-processing.c +++ b/src/libostree/ostree-repo-static-delta-processing.c @@ -581,8 +581,7 @@ dispatch_open_splice_and_close (OstreeRepo *repo, /* Fast path for regular files to bare repositories */ if (S_ISREG (state->mode) && - (repo->mode == OSTREE_REPO_MODE_BARE || - repo->mode == OSTREE_REPO_MODE_BARE_USER)) + _ostree_repo_mode_is_bare (repo->mode)) { if (!_ostree_repo_open_content_bare (repo, state->checksum, state->content_size,