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/file.c | |
parent | 44b36eb20bb60d7da1375c1fb45784740a4dc358 (diff) | |
download | kernel-crypto-ae2f5411c4ce7180cca8418853db50c8e52d40db.tar.gz kernel-crypto-ae2f5411c4ce7180cca8418853db50c8e52d40db.tar.xz kernel-crypto-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/file.c')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 4aacf99bd97..96df1b10cb6 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -188,7 +188,7 @@ insert: while (size > 0) { page = pages[i]; kaddr = kmap_atomic(page, KM_USER0); - cur_size = min(PAGE_CACHE_SIZE - page_offset, size); + cur_size = min_t(size_t, PAGE_CACHE_SIZE - page_offset, size); write_extent_buffer(leaf, kaddr + page_offset, ptr, cur_size); kunmap_atomic(kaddr, KM_USER0); page_offset = 0; |