summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba2018-06-29 10:56:53 +0200
committerDavid Sterba2018-08-06 13:12:44 +0200
commitebcc326316f3d798e9715e5ca1451c3e457b95dd (patch)
treef008663fb73aa369b9b1e79a45f09819bdf7b1a3 /fs/btrfs/inode.c
parentbtrfs: switch types to int when counting eb pages (diff)
downloadkernel-qcow2-linux-ebcc326316f3d798e9715e5ca1451c3e457b95dd.tar.gz
kernel-qcow2-linux-ebcc326316f3d798e9715e5ca1451c3e457b95dd.tar.xz
kernel-qcow2-linux-ebcc326316f3d798e9715e5ca1451c3e457b95dd.zip
btrfs: open-code bio_set_op_attrs
The helper is trivial and marked as deprecated. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index ada8a698af10..564ec00c765b 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -7861,7 +7861,7 @@ static blk_status_t dio_read_error(struct inode *inode, struct bio *failed_bio,
isector >>= inode->i_sb->s_blocksize_bits;
bio = btrfs_create_repair_bio(inode, failed_bio, failrec, page,
pgoff, isector, repair_endio, repair_arg);
- bio_set_op_attrs(bio, REQ_OP_READ, read_mode);
+ bio->bi_opf = REQ_OP_READ | read_mode;
btrfs_debug(BTRFS_I(inode)->root->fs_info,
"repair DIO read error: submitting new dio read[%#x] to this_mirror=%d, in_validation=%d",