summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin-metadata.c
diff options
context:
space:
mode:
authorMike Snitzer2012-07-27 16:07:57 +0200
committerAlasdair G Kergon2012-07-27 16:07:57 +0200
commit17b7d63f7ed10376e762fdfadbc65da6687d569a (patch)
tree5de13953644dab7ca76b0b924558503f0c8a7860 /drivers/md/dm-thin-metadata.c
parentdm thin: reduce endio_hook pool size (diff)
downloadkernel-qcow2-linux-17b7d63f7ed10376e762fdfadbc65da6687d569a.tar.gz
kernel-qcow2-linux-17b7d63f7ed10376e762fdfadbc65da6687d569a.tar.xz
kernel-qcow2-linux-17b7d63f7ed10376e762fdfadbc65da6687d569a.zip
dm thin: clean up compiler warning
Clean up "warning: dubious: !x & y". Also make it clear that __snapshotted_since() returns a bool and that dm_thin_lookup_result's 'shared' member is a flag. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin-metadata.c')
-rw-r--r--drivers/md/dm-thin-metadata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c
index 3e2907f0bc46..c858931d2dcb 100644
--- a/drivers/md/dm-thin-metadata.c
+++ b/drivers/md/dm-thin-metadata.c
@@ -1262,7 +1262,7 @@ dm_thin_id dm_thin_dev_id(struct dm_thin_device *td)
return td->id;
}
-static int __snapshotted_since(struct dm_thin_device *td, uint32_t time)
+static bool __snapshotted_since(struct dm_thin_device *td, uint32_t time)
{
return td->snapshotted_time > time;
}