diff options
author | Mike Snitzer <snitzer@redhat.com> | 2012-07-27 10:07:57 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 10:07:57 -0400 |
commit | 17b7d63f7ed10376e762fdfadbc65da6687d569a (patch) | |
tree | 5de13953644dab7ca76b0b924558503f0c8a7860 /drivers/md/dm-thin-metadata.h | |
parent | 7768ed33ccdc02801c4483fc5682dc66ace14aea (diff) |
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.h')
-rw-r--r-- | drivers/md/dm-thin-metadata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin-metadata.h b/drivers/md/dm-thin-metadata.h index b88918ccdaf6..7b47c0a9a8e3 100644 --- a/drivers/md/dm-thin-metadata.h +++ b/drivers/md/dm-thin-metadata.h | |||
@@ -119,7 +119,7 @@ dm_thin_id dm_thin_dev_id(struct dm_thin_device *td); | |||
119 | 119 | ||
120 | struct dm_thin_lookup_result { | 120 | struct dm_thin_lookup_result { |
121 | dm_block_t block; | 121 | dm_block_t block; |
122 | int shared; | 122 | unsigned shared:1; |
123 | }; | 123 | }; |
124 | 124 | ||
125 | /* | 125 | /* |