Fix some cases where unsigned long is being cast to unsigned int. Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx> --- drivers/md/dm-bufio.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Index: linux-2.6/drivers/md/dm-bufio.c =================================================================== --- linux-2.6.orig/drivers/md/dm-bufio.c +++ linux-2.6/drivers/md/dm-bufio.c @@ -109,7 +109,7 @@ static void lru_destroy(struct lru *lru) BUG_ON(!list_empty(&lru->iterators)); } -static inline unsigned int lru_count(struct lru *lru) +static inline unsigned long lru_count(struct lru *lru) { return lru->count; } @@ -260,7 +260,7 @@ typedef enum evict_result (*le_predicate static struct lru_entry *lru_evict(struct lru *lru, le_predicate pred, void *context) { - unsigned int tested = 0; + unsigned long tested = 0; struct list_head *h = lru->cursor; struct lru_entry *le; @@ -2647,11 +2647,11 @@ static enum evict_result select_for_evic return older_than(b, params->age_hz) ? ER_EVICT : ER_STOP; } -static unsigned int __evict_many(struct dm_bufio_client *c, - struct evict_params *params, - int list_mode, unsigned int max_count) +static unsigned long __evict_many(struct dm_bufio_client *c, + struct evict_params *params, + int list_mode, unsigned long max_count) { - unsigned int count; + unsigned long count; unsigned long last_accessed; struct dm_buffer *b; @@ -2758,9 +2758,9 @@ static void __insert_client(struct dm_bu list_add_tail(&new_client->client_list, h); } -static unsigned int __evict_a_few(unsigned int nr_buffers) +static unsigned long __evict_a_few(unsigned long nr_buffers) { - unsigned int count; + unsigned long count; struct dm_bufio_client *c; struct evict_params params = { .gfp = GFP_KERNEL, -- dm-devel mailing list dm-devel@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/dm-devel