diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2017-05-16 19:57:14 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:25:59 +0200 |
commit | e477094f0d3ce35b30d230bda3f31fc060cfe93b (patch) | |
tree | 2a15ed39cf6ce808e9a34aa1bc9c8c200b4738ba /fs/btrfs/inode.c | |
parent | Btrfs: work around maybe-uninitialized warning (diff) | |
download | linux-e477094f0d3ce35b30d230bda3f31fc060cfe93b.tar.xz linux-e477094f0d3ce35b30d230bda3f31fc060cfe93b.zip |
Btrfs: hardcode GFP_NOFS for btrfs_bio_clone_partial
We only pass GFP_NOFS to btrfs_bio_clone_partial, so lets hardcode it.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 93f1b31199d2..97b2bb9d3c89 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8514,7 +8514,7 @@ static int btrfs_submit_direct_hook(struct btrfs_dio_private *dip, * This will never fail as it's passing GPF_NOFS and * the allocation is backed by btrfs_bioset. */ - bio = btrfs_bio_clone_partial(orig_bio, GFP_NOFS, clone_offset, + bio = btrfs_bio_clone_partial(orig_bio, clone_offset, clone_len); bio->bi_private = dip; bio->bi_end_io = btrfs_end_dio_bio; |