mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
block,fs: use REQ_* flags directly
Remove the WRITE_* and READ_SYNC wrappers, and just use the flags directly. Where applicable this also drops usage of the bio_set_op_attrs wrapper. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
a2b809672e
commit
70fd76140a
53 changed files with 133 additions and 182 deletions
|
|
@ -1209,7 +1209,7 @@ do_blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,
|
|||
dio->inode = inode;
|
||||
if (iov_iter_rw(iter) == WRITE) {
|
||||
dio->op = REQ_OP_WRITE;
|
||||
dio->op_flags = WRITE_ODIRECT;
|
||||
dio->op_flags = REQ_SYNC | REQ_IDLE;
|
||||
} else {
|
||||
dio->op = REQ_OP_READ;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue