X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_internal.h;h=b1bec9e9e301c573e93e4b6fc02f380c7b19d7b4;hb=d30f9e6b6c5df9dcf1510b5c2414600165d904a8;hp=20656b40a06403363c5e45afe7538a45f2be5e84;hpb=1ada2c947b894f97ac4e7e9c6435a8b4e42ca1fa;p=fs%2Flustre-release.git diff --git a/lustre/osd-zfs/osd_internal.h b/lustre/osd-zfs/osd_internal.h index 20656b4..b1bec9e 100644 --- a/lustre/osd-zfs/osd_internal.h +++ b/lustre/osd-zfs/osd_internal.h @@ -364,8 +364,11 @@ struct osd_device { dnode_t *od_projectused_dn; #endif - /* quota slave instance */ - struct qsd_instance *od_quota_slave; + /* quota slave instance for inode */ + struct qsd_instance *od_quota_slave_md; + + /* quota slave instance for block */ + struct qsd_instance *od_quota_slave_dt; struct brw_stats od_brw_stats; atomic_t od_r_in_flight; @@ -393,6 +396,14 @@ struct osd_device { unsigned long long od_readcache_max_filesize; }; +static inline struct qsd_instance *osd_def_qsd(struct osd_device *osd) +{ + if (osd->od_is_ost) + return osd->od_quota_slave_dt; + else + return osd->od_quota_slave_md; +} + enum osd_destroy_type { OSD_DESTROY_NONE = 0, OSD_DESTROY_SYNC = 1,