mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
block/mm: make bdev_ops->rw_page() take a bool for read/write
Commit abf545484d changed it from an 'rw' flags type to the
newer ops based interface, but now we're effectively leaking
some bdev internals to the rest of the kernel. Since we only
care about whether it's a read or a write at that level, just
pass in a bool 'is_write' parameter instead.
Then we can also move op_is_write() and friends back under
CONFIG_BLOCK protection.
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
52ddb7e9dd
commit
c11f0c0b5b
11 changed files with 51 additions and 53 deletions
|
|
@ -887,9 +887,9 @@ EXPORT_SYMBOL(end_page_writeback);
|
|||
* After completing I/O on a page, call this routine to update the page
|
||||
* flags appropriately
|
||||
*/
|
||||
void page_endio(struct page *page, int op, int err)
|
||||
void page_endio(struct page *page, bool is_write, int err)
|
||||
{
|
||||
if (!op_is_write(op)) {
|
||||
if (!is_write) {
|
||||
if (!err) {
|
||||
SetPageUptodate(page);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue