[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220518120137.2544-1-liupeibao@163.com>
Date: Wed, 18 May 2022 20:01:36 +0800
From: Liu Peibao <liupeibao@....com>
To: tytso@....edu, adilger.kernel@...ger.ca
Cc: linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org,
liupeibao@....com
Subject: [PATCH 1/2] ext4: page-io: use 'unsigned int' to bare use of 'unsigned'
Fix warnings by checkpatch.
Signed-off-by: Liu Peibao <liupeibao@....com>
---
fs/ext4/page-io.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
index 14695e2b5042..fd55e11c8391 100644
--- a/fs/ext4/page-io.c
+++ b/fs/ext4/page-io.c
@@ -106,9 +106,9 @@ static void ext4_finish_bio(struct bio *bio)
struct page *page = bvec->bv_page;
struct page *bounce_page = NULL;
struct buffer_head *bh, *head;
- unsigned bio_start = bvec->bv_offset;
- unsigned bio_end = bio_start + bvec->bv_len;
- unsigned under_io = 0;
+ unsigned int bio_start = bvec->bv_offset;
+ unsigned int bio_end = bio_start + bvec->bv_len;
+ unsigned int under_io = 0;
unsigned long flags;
if (fscrypt_is_bounce_page(page)) {
@@ -329,7 +329,7 @@ static void ext4_end_bio(struct bio *bio)
if (WARN_ONCE(!io_end, "io_end is NULL: %pg: sector %Lu len %u err %d\n",
bio->bi_bdev,
(long long) bio->bi_iter.bi_sector,
- (unsigned) bio_sectors(bio),
+ (unsigned int) bio_sectors(bio),
bio->bi_status)) {
ext4_finish_bio(bio);
bio_put(bio);
@@ -435,7 +435,7 @@ int ext4_bio_write_page(struct ext4_io_submit *io,
{
struct page *bounce_page = NULL;
struct inode *inode = page->mapping->host;
- unsigned block_start;
+ unsigned int block_start;
struct buffer_head *bh, *head;
int ret = 0;
int nr_submitted = 0;
--
2.20.1
Powered by blists - more mailing lists