Lines Matching refs:objno
1684 static void __rbd_object_map_index(struct rbd_device *rbd_dev, u64 objno, in __rbd_object_map_index() argument
1689 rbd_assert(objno < rbd_dev->object_map_size); in __rbd_object_map_index()
1690 *index = div_u64_rem(objno, OBJS_PER_BYTE, &off); in __rbd_object_map_index()
1694 static u8 __rbd_object_map_get(struct rbd_device *rbd_dev, u64 objno) in __rbd_object_map_get() argument
1700 __rbd_object_map_index(rbd_dev, objno, &index, &shift); in __rbd_object_map_get()
1704 static void __rbd_object_map_set(struct rbd_device *rbd_dev, u64 objno, u8 val) in __rbd_object_map_set() argument
1713 __rbd_object_map_index(rbd_dev, objno, &index, &shift); in __rbd_object_map_set()
1718 static u8 rbd_object_map_get(struct rbd_device *rbd_dev, u64 objno) in rbd_object_map_get() argument
1723 state = __rbd_object_map_get(rbd_dev, objno); in rbd_object_map_get()
1745 static bool rbd_object_map_may_exist(struct rbd_device *rbd_dev, u64 objno) in rbd_object_map_may_exist() argument
1753 state = rbd_object_map_get(rbd_dev, objno); in rbd_object_map_may_exist()
1995 u64 objno; in rbd_object_map_update_finish() local
2017 objno = ceph_decode_64(&p); in rbd_object_map_update_finish()
2018 rbd_assert(objno == obj_req->ex.oe_objno); in rbd_object_map_update_finish()
2019 rbd_assert(ceph_decode_64(&p) == objno + 1); in rbd_object_map_update_finish()
2026 state = __rbd_object_map_get(rbd_dev, objno); in rbd_object_map_update_finish()
2029 __rbd_object_map_set(rbd_dev, objno, new_state); in rbd_object_map_update_finish()
2047 static bool update_needed(struct rbd_device *rbd_dev, u64 objno, u8 new_state) in update_needed() argument
2049 u8 state = rbd_object_map_get(rbd_dev, objno); in update_needed()
2060 int which, u64 objno, u8 new_state, in rbd_cls_object_map_update() argument
2076 ceph_encode_64(&p, objno); in rbd_cls_object_map_update()
2077 ceph_encode_64(&p, objno + 1); in rbd_cls_object_map_update()