Lines Matching refs:snap_count

938 	u32 snap_count;  in rbd_dev_ondisk_valid()  local
958 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_dev_ondisk_valid()
960 if (snap_count > size / sizeof (__le64)) in rbd_dev_ondisk_valid()
967 size -= snap_count * sizeof (__le64); in rbd_dev_ondisk_valid()
1011 u32 snap_count; in rbd_header_from_disk() local
1027 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_header_from_disk()
1028 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_header_from_disk()
1032 if (snap_count) { in rbd_header_from_disk()
1045 snap_sizes = kmalloc_array(snap_count, in rbd_header_from_disk()
1060 memcpy(snap_names, &ondisk->snaps[snap_count], snap_names_len); in rbd_header_from_disk()
1062 for (i = 0; i < snap_count; i++) { in rbd_header_from_disk()
4788 u32 snap_count = 0; in rbd_dev_v1_header_info() local
4806 size += snap_count * sizeof (struct rbd_image_snap_ondisk); in rbd_dev_v1_header_info()
4829 want_count = snap_count; in rbd_dev_v1_header_info()
4830 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_dev_v1_header_info()
4831 } while (snap_count != want_count); in rbd_dev_v1_header_info()
6037 u32 snap_count; in rbd_dev_v2_snap_context() local
6064 ceph_decode_32_safe(&p, end, snap_count, out); in rbd_dev_v2_snap_context()
6072 if (snap_count > (SIZE_MAX - sizeof (struct ceph_snap_context)) in rbd_dev_v2_snap_context()
6077 if (!ceph_has_room(&p, end, snap_count * sizeof (__le64))) in rbd_dev_v2_snap_context()
6081 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_dev_v2_snap_context()
6087 for (i = 0; i < snap_count; i++) in rbd_dev_v2_snap_context()
6094 (unsigned long long)seq, (unsigned int)snap_count); in rbd_dev_v2_snap_context()