rbd: define flags field, use it for exists flag
authorAlex Elder <elder@inktank.com>
Mon, 14 Jan 2013 18:43:31 +0000 (12:43 -0600)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 02:29:10 +0000 (18:29 -0800)
commit6d292906f80170f4647079dd503df18b737750af
tree2fc2b4f1235375cd143ab261540ce19e56d8ab62
parent8eb87565306cf40a32f5d0883d008675cd2dd510
rbd: define flags field, use it for exists flag

Define a new rbd device flags field, manipulated using bit
operations.  Replace the use of the current "exists" flag with a bit
in this new "flags" field.  Add a little commentary about the
"exists" flag, which does not need to be manipulated atomically.

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