diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 130a1d3d9f5f..23ba4e979fc9 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -1903,7 +1903,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf, | |||
1903 | if (inode->i_size >= PAGE_CACHE_SIZE || pos + count < inode->i_size || | 1903 | if (inode->i_size >= PAGE_CACHE_SIZE || pos + count < inode->i_size || |
1904 | pos + count - start_pos > BTRFS_MAX_INLINE_DATA_SIZE(root)) { | 1904 | pos + count - start_pos > BTRFS_MAX_INLINE_DATA_SIZE(root)) { |
1905 | ret = btrfs_alloc_extent(trans, root, inode->i_ino, | 1905 | ret = btrfs_alloc_extent(trans, root, inode->i_ino, |
1906 | num_blocks, 1, (u64)-1, &ins); | 1906 | num_blocks, 1, (u64)-1, &ins, 1); |
1907 | BUG_ON(ret); | 1907 | BUG_ON(ret); |
1908 | ret = btrfs_insert_file_extent(trans, root, inode->i_ino, | 1908 | ret = btrfs_insert_file_extent(trans, root, inode->i_ino, |
1909 | start_pos, ins.objectid, ins.offset); | 1909 | start_pos, ins.objectid, ins.offset); |