Skip to content

Commit 302efbe

Browse files
Lu HongfeiDarrick J. Wong
authored andcommitted
fs: iomap: Change the type of blocksize from 'int' to 'unsigned int' in iomap_file_buffered_write_punch_delalloc
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]>
1 parent 858fd16 commit 302efbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/iomap/buffered-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ int iomap_file_buffered_write_punch_delalloc(struct inode *inode,
10731073
{
10741074
loff_t start_byte;
10751075
loff_t end_byte;
1076-
int blocksize = i_blocksize(inode);
1076+
unsigned int blocksize = i_blocksize(inode);
10771077

10781078
if (iomap->type != IOMAP_DELALLOC)
10791079
return 0;

0 commit comments

Comments
 (0)