Lines Matching refs:opt2
135 struct ceph_options *opt2 = client->options; in ceph_compare_options() local
147 ret = memcmp(opt1, opt2, ofs); in ceph_compare_options()
151 ret = strcmp_null(opt1->name, opt2->name); in ceph_compare_options()
155 if (opt1->key && !opt2->key) in ceph_compare_options()
157 if (!opt1->key && opt2->key) in ceph_compare_options()
159 if (opt1->key && opt2->key) { in ceph_compare_options()
160 if (opt1->key->type != opt2->key->type) in ceph_compare_options()
162 if (opt1->key->created.tv_sec != opt2->key->created.tv_sec) in ceph_compare_options()
164 if (opt1->key->created.tv_nsec != opt2->key->created.tv_nsec) in ceph_compare_options()
166 if (opt1->key->len != opt2->key->len) in ceph_compare_options()
168 if (opt1->key->key && !opt2->key->key) in ceph_compare_options()
170 if (!opt1->key->key && opt2->key->key) in ceph_compare_options()
172 if (opt1->key->key && opt2->key->key) { in ceph_compare_options()
173 ret = memcmp(opt1->key->key, opt2->key->key, opt1->key->len); in ceph_compare_options()
179 ret = ceph_compare_crush_locs(&opt1->crush_locs, &opt2->crush_locs); in ceph_compare_options()