diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-10-19 09:22:59 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:57 -0400 |
commit | ae2f5411c4ce7180cca8418853db50c8e52d40db (patch) | |
tree | f169f0dfa6a13781dbf27baa4e283a0cc509e07d /fs/btrfs/extent_map.c | |
parent | 44b36eb20bb60d7da1375c1fb45784740a4dc358 (diff) |
btrfs: 32-bit type problems
An assorted set of casts to get rid of the warnings on 32-bit archs.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index e87e476dca92..89d0ebd0ea83 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c | |||
@@ -2654,8 +2654,8 @@ void memcpy_extent_buffer(struct extent_buffer *dst, unsigned long dst_offset, | |||
2654 | 2654 | ||
2655 | cur = min(len, (unsigned long)(PAGE_CACHE_SIZE - | 2655 | cur = min(len, (unsigned long)(PAGE_CACHE_SIZE - |
2656 | src_off_in_page)); | 2656 | src_off_in_page)); |
2657 | cur = min(cur, (unsigned long)(PAGE_CACHE_SIZE - | 2657 | cur = min_t(unsigned long, cur, |
2658 | dst_off_in_page)); | 2658 | (unsigned long)(PAGE_CACHE_SIZE - dst_off_in_page)); |
2659 | 2659 | ||
2660 | copy_pages(extent_buffer_page(dst, dst_i), | 2660 | copy_pages(extent_buffer_page(dst, dst_i), |
2661 | extent_buffer_page(dst, src_i), | 2661 | extent_buffer_page(dst, src_i), |
@@ -2707,7 +2707,7 @@ void memmove_extent_buffer(struct extent_buffer *dst, unsigned long dst_offset, | |||
2707 | if (dst_i == 0) | 2707 | if (dst_i == 0) |
2708 | dst_off_in_page += start_offset; | 2708 | dst_off_in_page += start_offset; |
2709 | 2709 | ||
2710 | cur = min(len, src_off_in_page + 1); | 2710 | cur = min_t(unsigned long, len, src_off_in_page + 1); |
2711 | cur = min(cur, dst_off_in_page + 1); | 2711 | cur = min(cur, dst_off_in_page + 1); |
2712 | move_pages(extent_buffer_page(dst, dst_i), | 2712 | move_pages(extent_buffer_page(dst, dst_i), |
2713 | extent_buffer_page(dst, src_i), | 2713 | extent_buffer_page(dst, src_i), |