blob: fix spelling, white space, grammar

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: I236c8a1c7f1ae4b0afd0d20175a1a2a647dba758
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11265
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
This commit is contained in:
Mike Gerdts 2022-01-03 12:46:14 -06:00 committed by Tomasz Zawadzki
parent fae72b3464
commit 9b72cda8b2
2 changed files with 14 additions and 14 deletions

View File

@ -913,7 +913,7 @@ const struct spdk_bdev_aliases_list *spdk_bdev_get_aliases(const struct spdk_bde
void spdk_bdev_io_get_buf(struct spdk_bdev_io *bdev_io, spdk_bdev_io_get_buf_cb cb, uint64_t len); void spdk_bdev_io_get_buf(struct spdk_bdev_io *bdev_io, spdk_bdev_io_get_buf_cb cb, uint64_t len);
/** /**
* Allocate an auxillary buffer for given bdev_io. The length of the * Allocate an auxiliary buffer for given bdev_io. The length of the
* buffer will be the same size as the bdev_io primary buffer. The buffer * buffer will be the same size as the bdev_io primary buffer. The buffer
* must be freed using \c spdk_bdev_io_put_aux_buf() before completing * must be freed using \c spdk_bdev_io_put_aux_buf() before completing
* the associated bdev_io. This call will never fail. In case of lack of * the associated bdev_io. This call will never fail. In case of lack of
@ -935,7 +935,7 @@ void spdk_bdev_io_put_aux_buf(struct spdk_bdev_io *bdev_io, void *aux_buf);
/** /**
* Set the given buffer as the data buffer described by this bdev_io. * Set the given buffer as the data buffer described by this bdev_io.
* *
* The portion of the buffer used may be adjusted for memory alignement * The portion of the buffer used may be adjusted for memory alignment
* purposes. * purposes.
* *
* \param bdev_io I/O to set the buffer on. * \param bdev_io I/O to set the buffer on.

View File

@ -211,7 +211,7 @@ struct spdk_blob_store {
RB_HEAD(spdk_blob_tree, spdk_blob) open_blobs; RB_HEAD(spdk_blob_tree, spdk_blob) open_blobs;
TAILQ_HEAD(, spdk_blob_list) snapshots; TAILQ_HEAD(, spdk_blob_list) snapshots;
bool clean; bool clean;
}; };
struct spdk_bs_channel { struct spdk_bs_channel {
@ -308,8 +308,8 @@ struct spdk_blob_md_descriptor_extent_rle {
uint32_t length; uint32_t length;
struct { struct {
uint32_t cluster_idx; uint32_t cluster_idx;
uint32_t length; /* In units of clusters */ uint32_t length; /* In units of clusters */
} extents[0]; } extents[0];
}; };
@ -333,7 +333,7 @@ struct spdk_blob_md_descriptor_extent_page {
/* First cluster index in this extent page */ /* First cluster index in this extent page */
uint32_t start_cluster_idx; uint32_t start_cluster_idx;
uint32_t cluster_idx[0]; uint32_t cluster_idx[0];
}; };
#define SPDK_BLOB_THIN_PROV (1ULL << 0) #define SPDK_BLOB_THIN_PROV (1ULL << 0)
@ -365,7 +365,7 @@ struct spdk_blob_md_descriptor_flags {
uint64_t data_ro_flags; uint64_t data_ro_flags;
/* /*
* If a flag in md_ro_flags is set the the application is not aware of, * If a flag in md_ro_flags is set the application is not aware of,
* allow the blob to be opened in md_read_only mode. * allow the blob to be opened in md_read_only mode.
*/ */
uint64_t md_ro_flags; uint64_t md_ro_flags;
@ -381,7 +381,7 @@ struct spdk_blob_md_descriptor {
struct spdk_blob_md_page { struct spdk_blob_md_page {
spdk_blob_id id; spdk_blob_id id;
uint32_t sequence_num; uint32_t sequence_num;
uint32_t reserved0; uint32_t reserved0;
/* Descriptors here */ /* Descriptors here */
@ -404,8 +404,8 @@ SPDK_STATIC_ASSERT(SPDK_BS_PAGE_SIZE == sizeof(struct spdk_blob_md_page), "Inval
struct spdk_bs_super_block { struct spdk_bs_super_block {
uint8_t signature[8]; uint8_t signature[8];
uint32_t version; uint32_t version;
uint32_t length; uint32_t length;
uint32_t clean; /* If there was a clean shutdown, this is 1. */ uint32_t clean; /* If there was a clean shutdown, this is 1. */
spdk_blob_id super_blob; spdk_blob_id super_blob;
@ -425,10 +425,10 @@ struct spdk_bs_super_block {
uint32_t used_blobid_mask_start; /* Offset from beginning of disk, in pages */ uint32_t used_blobid_mask_start; /* Offset from beginning of disk, in pages */
uint32_t used_blobid_mask_len; /* Count, in pages */ uint32_t used_blobid_mask_len; /* Count, in pages */
uint64_t size; /* size of blobstore in bytes */ uint64_t size; /* size of blobstore in bytes */
uint32_t io_unit_size; /* Size of io unit in bytes */ uint32_t io_unit_size; /* Size of io unit in bytes */
uint8_t reserved[4000]; uint8_t reserved[4000];
uint32_t crc; uint32_t crc;
}; };
SPDK_STATIC_ASSERT(sizeof(struct spdk_bs_super_block) == 0x1000, "Invalid super block size"); SPDK_STATIC_ASSERT(sizeof(struct spdk_bs_super_block) == 0x1000, "Invalid super block size");
@ -619,7 +619,7 @@ static inline uint32_t
bs_num_io_units_to_cluster_boundary(struct spdk_blob *blob, uint64_t io_unit) bs_num_io_units_to_cluster_boundary(struct spdk_blob *blob, uint64_t io_unit)
{ {
uint64_t io_units_per_cluster; uint64_t io_units_per_cluster;
uint8_t shift = blob->bs->pages_per_cluster_shift; uint8_t shift = blob->bs->pages_per_cluster_shift;
if (shift != 0) { if (shift != 0) {
io_units_per_cluster = bs_io_unit_per_page(blob->bs) << shift; io_units_per_cluster = bs_io_unit_per_page(blob->bs) << shift;