]> Git Repo - linux.git/commitdiff
fs: iomap: Change the type of blocksize from 'int' to 'unsigned int' in iomap_file_bu...
authorLu Hongfei <[email protected]>
Thu, 29 Jun 2023 16:22:50 +0000 (09:22 -0700)
committerDarrick J. Wong <[email protected]>
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 <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
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;
This page took 0.054505 seconds and 4 git commands to generate.