ceph: fix check for invalidate_mapping_pages success
authorSage Weil <sage@newdream.net>
Wed, 17 Feb 2010 18:43:37 +0000 (10:43 -0800)
committerSage Weil <sage@newdream.net>
Fri, 19 Feb 2010 22:33:18 +0000 (14:33 -0800)
We need to know whether there was any page left behind, and not the
return value (the total number of pages invalidated).  Look at the mapping
to see if we were successful or not.

Move it all into a helper to simplify the two callers.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>

No differences found