diff options
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; |