[PATCH 1/2] ext4: page-io: use 'unsigned int' to bare use of 'unsigned'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix warnings by checkpatch.

Signed-off-by: Liu Peibao <liupeibao@xxxxxxx>
---
 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




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux