blobstore: Move _spdk_blob_set_thin_provision function
This patch moves _spdk_blob_set_thin_provision function higher in the file as it will be later used during blobstore load. Signed-off-by: Maciej Szwed <maciej.szwed@intel.com> Change-Id: Ife37ef8c69b88903646b2002b3561101c1eb5135 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455488 Reviewed-by: Piotr Pelpliński <piotr.pelplinski@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
8f2a85362b
commit
543d8b7b67
@ -2692,6 +2692,14 @@ _spdk_bs_write_used_blobids(spdk_bs_sequence_t *seq, void *arg, spdk_bs_sequence
|
||||
spdk_bs_sequence_write_dev(seq, ctx->mask, lba, lba_count, cb_fn, arg);
|
||||
}
|
||||
|
||||
static void
|
||||
_spdk_blob_set_thin_provision(struct spdk_blob *blob)
|
||||
{
|
||||
_spdk_blob_verify_md_op(blob);
|
||||
blob->invalid_flags |= SPDK_BLOB_THIN_PROV;
|
||||
blob->state = SPDK_BLOB_STATE_DIRTY;
|
||||
}
|
||||
|
||||
static void
|
||||
_spdk_bs_load_iter(void *arg, struct spdk_blob *blob, int bserrno)
|
||||
{
|
||||
@ -4123,14 +4131,6 @@ _spdk_blob_set_xattrs(struct spdk_blob *blob, const struct spdk_blob_xattr_opts
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
_spdk_blob_set_thin_provision(struct spdk_blob *blob)
|
||||
{
|
||||
_spdk_blob_verify_md_op(blob);
|
||||
blob->invalid_flags |= SPDK_BLOB_THIN_PROV;
|
||||
blob->state = SPDK_BLOB_STATE_DIRTY;
|
||||
}
|
||||
|
||||
static void
|
||||
_spdk_bs_create_blob(struct spdk_blob_store *bs,
|
||||
const struct spdk_blob_opts *opts,
|
||||
|
Loading…
Reference in New Issue
Block a user