diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-02-20 13:50:36 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-28 11:30:06 +0100 |
commit | 04f4f916531adc7d2ca6fdb16a68b6f2ff2a8a3b (patch) | |
tree | a7b4607553d1c9a74e7ff03ef0dde0530a766f7d /fs/btrfs/file.c | |
parent | 70ddc553b5522b96e65a162be1cecba532630841 (diff) | |
download | linux-04f4f916531adc7d2ca6fdb16a68b6f2ff2a8a3b.tar.bz2 |
btrfs: make btrfs_alloc_data_chunk_ondemand take btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.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 18e5146df864..073bc975bbb6 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -2747,7 +2747,8 @@ static long btrfs_fallocate(struct file *file, int mode, * * For qgroup space, it will be checked later. */ - ret = btrfs_alloc_data_chunk_ondemand(inode, alloc_end - alloc_start); + ret = btrfs_alloc_data_chunk_ondemand(BTRFS_I(inode), + alloc_end - alloc_start); if (ret < 0) return ret; |