]> git.hungrycats.org Git - linux/commitdiff
fs/xfs/linux/xfs_aops.c:linvfs_get_block_core Use min_t.
authorDavid S. Miller <davem@nuts.ninka.net>
Thu, 19 Sep 2002 08:17:53 +0000 (01:17 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 19 Sep 2002 08:17:53 +0000 (01:17 -0700)
fs/xfs/linux/xfs_aops.c

index 72202e5a89ffe55e8a26b5dd1ce1b5ee4475a2bd..b9892b19a71834fc0ff8cbea52d1b95354040291 100644 (file)
@@ -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;