block: loop: introduce lo_discard() and lo_req_flush()
authorMing Lei <ming.lei@canonical.com>
Wed, 31 Dec 2014 13:22:59 +0000 (13:22 +0000)
committerJens Axboe <axboe@fb.com>
Fri, 2 Jan 2015 22:07:49 +0000 (15:07 -0700)
commitcf655d953422c846558a320ac9b3c8e659b68275
tree14368edcbe9cdf05a9ce0d9611e81c4c21a02ec9
parent301120134628c49346e5f23f7c00e7377013d5e0
block: loop: introduce lo_discard() and lo_req_flush()

No behaviour change, just move the handling for REQ_DISCARD
and REQ_FLUSH in these two functions.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/loop.c