Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 902ba945 authored by Sayali Lokhande's avatar Sayali Lokhande
Browse files

f2fs : Set correct bio flags to reflect REQ_RAHEAD



In f2fs_grab_read_bio(), bio op_flag setting is not
handled properly resulting in request read-ahead
never set. This change corrects bio flag setting to
reflect REQ_RAHEAD if passed by caller.

Change-Id: I5d7b0045fac891bff37073b8d1343fd2aa7b08a5
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent 83bf913b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -624,10 +624,8 @@ static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr,
		return ERR_PTR(-ENOMEM);
	f2fs_target_device(sbi, blkaddr, bio);
	bio->bi_end_io = f2fs_read_end_io;
	bio_set_op_attrs(bio, REQ_OP_READ,
			 (IS_ENCRYPTED(inode) ?
			  REQ_NOENCRYPT :
			  0));
	op_flag |= IS_ENCRYPTED(inode) ? REQ_NOENCRYPT : 0;
	bio_set_op_attrs(bio, REQ_OP_READ, op_flag);

	if (f2fs_encrypted_file(inode) &&
		!fscrypt_using_hardware_encryption(inode))