fs: iomap: Change the type of blocksize from 'int' to 'unsigned int' in iomap_file_bu...
authorLu Hongfei <luhongfei@vivo.com>
Thu, 29 Jun 2023 16:22:50 +0000 (09:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 29 Jun 2023 16:22:50 +0000 (09:22 -0700)
The return value type of i_blocksize() is 'unsigned int', so the
type of blocksize has been modified from 'int' to 'unsigned int'
to ensure data type consistency.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c

index 063133ec77f49ecb353739d0110f82144b1c85f5..474deb388fbca30616d30f2dbacc90875ad730e8 100644 (file)
@@ -1073,7 +1073,7 @@ int iomap_file_buffered_write_punch_delalloc(struct inode *inode,
 {
        loff_t                  start_byte;
        loff_t                  end_byte;
-       int                     blocksize = i_blocksize(inode);
+       unsigned int            blocksize = i_blocksize(inode);
 
        if (iomap->type != IOMAP_DELALLOC)
                return 0;