diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-06-22 14:16:24 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-06-22 14:16:24 -0400 |
commit | 11bd143fc8243cf48c934dc1c4479a5aacf58ce3 (patch) | |
tree | 51611e84a9d507d316cb5e4f124f488cd44a6c7f /fs/btrfs/file.c | |
parent | e011599b0f375683499bf1a9954703f4959a8d00 (diff) |
Btrfs: Switch to libcrc32c to avoid problems with cryptomgr on highmem machines
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 6b455c2b3f03..23f029359688 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -607,7 +607,8 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, | |||
607 | 607 | ||
608 | while(count > 0) { | 608 | while(count > 0) { |
609 | size_t offset = pos & (PAGE_CACHE_SIZE - 1); | 609 | size_t offset = pos & (PAGE_CACHE_SIZE - 1); |
610 | size_t write_bytes = min(count, nrptrs * PAGE_CACHE_SIZE - | 610 | size_t write_bytes = min(count, nrptrs * |
611 | (size_t)PAGE_CACHE_SIZE - | ||
611 | offset); | 612 | offset); |
612 | size_t num_pages = (write_bytes + PAGE_CACHE_SIZE - 1) >> | 613 | size_t num_pages = (write_bytes + PAGE_CACHE_SIZE - 1) >> |
613 | PAGE_CACHE_SHIFT; | 614 | PAGE_CACHE_SHIFT; |