summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-10-19 09:22:59 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:57 -0400
commitae2f5411c4ce7180cca8418853db50c8e52d40db (patch)
treef169f0dfa6a13781dbf27baa4e283a0cc509e07d /fs/btrfs/inode.c
parent44b36eb20bb60d7da1375c1fb45784740a4dc358 (diff)
downloadlwn-ae2f5411c4ce7180cca8418853db50c8e52d40db.tar.gz
lwn-ae2f5411c4ce7180cca8418853db50c8e52d40db.zip
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/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index ac69f6926afc..0e1ca423e22d 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1606,7 +1606,7 @@ again:
extent_start;
ptr = btrfs_file_extent_inline_start(item) + extent_offset;
map = kmap(page);
- copy_size = min(PAGE_CACHE_SIZE - page_offset,
+ copy_size = min_t(u64, PAGE_CACHE_SIZE - page_offset,
size - extent_offset);
em->block_start = EXTENT_MAP_INLINE;