]> git.karo-electronics.de Git - linux-beck.git/commit
rbd: define image request flags
authorAlex Elder <elder@inktank.com>
Fri, 8 Feb 2013 15:55:49 +0000 (09:55 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:18:40 +0000 (21:18 -0700)
commit0c425248e0c6b3ebb64489b178b5412ab164b7f8
tree5f32ea141ab5702e85fb3e2983ebba476267290e
parent7da22d296d871174f3e8251a02a8f86a90c7463b
rbd: define image request flags

There are several Boolean values we'll be maintaining for image
requests.  Switch from the single write_request field to a
general-purpose flags field, and use one if its bits to represent
the direction of I/O for the image request.  Define helper functions
for setting and testing that flag.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c