diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 17:07:25 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-31 00:00:22 +0300 |
commit | b7ec35b304b64af2830027350cc99d31e6e537c2 (patch) | |
tree | c578df39d847e08e88db9d6f5e1b7e5cd4df86b5 /include/linux/ceph/osd_client.h | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) | |
download | linux-b7ec35b304b64af2830027350cc99d31e6e537c2.tar.xz |
libceph: change ceph_osdmap_flag() to take osdc
For the benefit of every single caller, take osdc instead of map.
Also, now that osdc->osdmap can't ever be NULL, drop the check.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph/osd_client.h')
-rw-r--r-- | include/linux/ceph/osd_client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 19b14862d3e0..1b3b6e155392 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h @@ -279,6 +279,11 @@ struct ceph_osd_client { struct workqueue_struct *notify_wq; }; +static inline bool ceph_osdmap_flag(struct ceph_osd_client *osdc, int flag) +{ + return osdc->osdmap->flags & flag; +} + extern int ceph_osdc_setup(void); extern void ceph_osdc_cleanup(void); |