Commit df07b05e authored by David S. Miller's avatar David S. Miller

fs/xfs/linux/xfs_aops.c:linvfs_get_block_core Use min_t.

parent 04156408
......@@ -609,7 +609,7 @@ linvfs_get_block_core(
if (blocks) {
size = (pbmap.pbm_bsize - pbmap.pbm_delta);
bh_result->b_size = min(size, blocks << inode->i_blkbits);
bh_result->b_size = min_t(ssize_t, size, blocks << inode->i_blkbits);
}
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment