Lines Matching refs:snap_count

939 	u32 snap_count;  in rbd_dev_ondisk_valid()  local
959 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_dev_ondisk_valid()
961 if (snap_count > size / sizeof (__le64)) in rbd_dev_ondisk_valid()
968 size -= snap_count * sizeof (__le64); in rbd_dev_ondisk_valid()
1012 u32 snap_count; in rbd_header_from_disk() local
1028 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_header_from_disk()
1029 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_header_from_disk()
1033 if (snap_count) { in rbd_header_from_disk()
1046 snap_sizes = kmalloc_array(snap_count, in rbd_header_from_disk()
1061 memcpy(snap_names, &ondisk->snaps[snap_count], snap_names_len); in rbd_header_from_disk()
1063 for (i = 0; i < snap_count; i++) { in rbd_header_from_disk()
4790 u32 snap_count = 0; in rbd_dev_v1_header_info() local
4808 size += snap_count * sizeof (struct rbd_image_snap_ondisk); in rbd_dev_v1_header_info()
4831 want_count = snap_count; in rbd_dev_v1_header_info()
4832 snap_count = le32_to_cpu(ondisk->snap_count); in rbd_dev_v1_header_info()
4833 } while (snap_count != want_count); in rbd_dev_v1_header_info()
6044 u32 snap_count; in rbd_dev_v2_snap_context() local
6071 ceph_decode_32_safe(&p, end, snap_count, out); in rbd_dev_v2_snap_context()
6079 if (snap_count > (SIZE_MAX - sizeof (struct ceph_snap_context)) in rbd_dev_v2_snap_context()
6084 if (!ceph_has_room(&p, end, snap_count * sizeof (__le64))) in rbd_dev_v2_snap_context()
6088 snapc = ceph_create_snap_context(snap_count, GFP_KERNEL); in rbd_dev_v2_snap_context()
6094 for (i = 0; i < snap_count; i++) in rbd_dev_v2_snap_context()
6101 (unsigned long long)seq, (unsigned int)snap_count); in rbd_dev_v2_snap_context()