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 1fe38fe84150..00b118a2db69 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -512,7 +512,7 @@ static int prepare_pages(struct btrfs_root *root, | |||
512 | if (isize >= PAGE_CACHE_SIZE || pos + write_bytes < inode->i_size || | 512 | if (isize >= PAGE_CACHE_SIZE || pos + write_bytes < inode->i_size || |
513 | pos + write_bytes - start_pos > BTRFS_MAX_INLINE_DATA_SIZE(root)) { | 513 | pos + write_bytes - start_pos > BTRFS_MAX_INLINE_DATA_SIZE(root)) { |
514 | err = btrfs_alloc_extent(trans, root, inode->i_ino, | 514 | err = btrfs_alloc_extent(trans, root, inode->i_ino, |
515 | num_blocks, hint_block, (u64)-1, | 515 | num_blocks, 0, hint_block, (u64)-1, |
516 | &ins, 1); | 516 | &ins, 1); |
517 | if (err) | 517 | if (err) |
518 | goto failed_truncate; | 518 | goto failed_truncate; |