Searched refs:snap_count (Results 1 – 4 of 4) sorted by relevance
27 struct ceph_snap_context *ceph_create_snap_context(u32 snap_count, in ceph_create_snap_context() argument34 size += snap_count * sizeof (snapc->snaps[0]); in ceph_create_snap_context()40 snapc->num_snaps = snap_count; in ceph_create_snap_context()
93 __le32 snap_count; member
938 u32 snap_count; in rbd_dev_ondisk_valid() local958 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() local1027 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()[all …]
180 extern struct ceph_snap_context *ceph_create_snap_context(u32 snap_count,