mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
dm: change "unsigned" to "unsigned int"
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
This commit is contained in:
committed by
Mike Snitzer
parent
238d991f05
commit
86a3238c7b
@@ -95,8 +95,8 @@ struct block_op {
|
||||
};
|
||||
|
||||
struct bop_ring_buffer {
|
||||
unsigned begin;
|
||||
unsigned end;
|
||||
unsigned int begin;
|
||||
unsigned int end;
|
||||
struct block_op bops[MAX_RECURSIVE_ALLOCATIONS + 1];
|
||||
};
|
||||
|
||||
@@ -111,9 +111,9 @@ static bool brb_empty(struct bop_ring_buffer *brb)
|
||||
return brb->begin == brb->end;
|
||||
}
|
||||
|
||||
static unsigned brb_next(struct bop_ring_buffer *brb, unsigned old)
|
||||
static unsigned int brb_next(struct bop_ring_buffer *brb, unsigned int old)
|
||||
{
|
||||
unsigned r = old + 1;
|
||||
unsigned int r = old + 1;
|
||||
return r >= ARRAY_SIZE(brb->bops) ? 0 : r;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ static int brb_push(struct bop_ring_buffer *brb,
|
||||
enum block_op_type type, dm_block_t b, dm_block_t e)
|
||||
{
|
||||
struct block_op *bop;
|
||||
unsigned next = brb_next(brb, brb->end);
|
||||
unsigned int next = brb_next(brb, brb->end);
|
||||
|
||||
/*
|
||||
* We don't allow the last bop to be filled, this way we can
|
||||
@@ -172,8 +172,8 @@ struct sm_metadata {
|
||||
|
||||
dm_block_t begin;
|
||||
|
||||
unsigned recursion_count;
|
||||
unsigned allocated_this_transaction;
|
||||
unsigned int recursion_count;
|
||||
unsigned int allocated_this_transaction;
|
||||
struct bop_ring_buffer uncommitted;
|
||||
|
||||
struct threshold threshold;
|
||||
@@ -301,9 +301,9 @@ static int sm_metadata_get_count(struct dm_space_map *sm, dm_block_t b,
|
||||
uint32_t *result)
|
||||
{
|
||||
int r;
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm);
|
||||
unsigned adjustment = 0;
|
||||
unsigned int adjustment = 0;
|
||||
|
||||
/*
|
||||
* We may have some uncommitted adjustments to add. This list
|
||||
@@ -341,7 +341,7 @@ static int sm_metadata_count_is_more_than_one(struct dm_space_map *sm,
|
||||
dm_block_t b, int *result)
|
||||
{
|
||||
int r, adjustment = 0;
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm);
|
||||
uint32_t rc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user