Skip to content

Commit

Permalink
fs: iomap: Change the type of blocksize from 'int' to 'unsigned int' …
Browse files Browse the repository at this point in the history
…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 <luhongfei@vivo.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
  • Loading branch information
Lu Hongfei authored and Darrick J. Wong committed Jun 29, 2023
1 parent 858fd16 commit 302efbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/iomap/buffered-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 302efbe

Please sign in to comment.