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) |
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 4aacf99bd97f..96df1b10cb60 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -188,7 +188,7 @@ insert: | |||
188 | while (size > 0) { | 188 | while (size > 0) { |
189 | page = pages[i]; | 189 | page = pages[i]; |
190 | kaddr = kmap_atomic(page, KM_USER0); | 190 | kaddr = kmap_atomic(page, KM_USER0); |
191 | cur_size = min(PAGE_CACHE_SIZE - page_offset, size); | 191 | cur_size = min_t(size_t, PAGE_CACHE_SIZE - page_offset, size); |
192 | write_extent_buffer(leaf, kaddr + page_offset, ptr, cur_size); | 192 | write_extent_buffer(leaf, kaddr + page_offset, ptr, cur_size); |
193 | kunmap_atomic(kaddr, KM_USER0); | 193 | kunmap_atomic(kaddr, KM_USER0); |
194 | page_offset = 0; | 194 | page_offset = 0; |