Lines Matching full:segment
3 * NILFS segment usage file.
25 * @allocmin: lower limit of allocatable segment range
26 * @allocmax: upper limit of allocatable segment range
31 __u64 allocmin; /* lower limit of allocatable segment range */
32 __u64 allocmax; /* upper limit of allocatable segment range */
89 "missing header block in segment usage metadata"); in nilfs_sufile_get_header_block()
128 * @sufile: inode of segment usage file
136 * nilfs_sufile_updatev - modify multiple segment usages at a time
137 * @sufile: inode of segment usage file
138 * @segnumv: array of segment numbers
147 * segment usage entry is contained. If @ndone is given, the number
158 * %-ENOENT - Given segment usage is in hole block (may be returned if
161 * %-EINVAL - Invalid segment usage number
182 "%s: invalid segment number: %llu", in nilfs_sufile_updatev()
240 nilfs_warn(sufile->i_sb, "%s: invalid segment number: %llu", in nilfs_sufile_update()
263 * nilfs_sufile_set_alloc_range - limit range of segment to be allocated
264 * @sufile: inode of segment usage file
265 * @start: minimum segment number of allocatable region (inclusive)
266 * @end: maximum segment number of allocatable region (inclusive)
271 * %-ERANGE - invalid segment region
292 * nilfs_sufile_alloc - allocate a segment
293 * @sufile: inode of segment usage file
294 * @segnump: pointer to segment number
296 * Description: nilfs_sufile_alloc() allocates a clean segment.
298 * Return Value: On success, 0 is returned and the segment number of the
299 * allocated segment is stored in the place pointed by @segnump. On error, one
306 * %-ENOSPC - No clean segment left.
371 /* found a clean segment */ in nilfs_sufile_alloc()
419 nilfs_warn(sufile->i_sb, "%s: segment %llu must be clean", in nilfs_sufile_do_cancel_free()
452 /* make the segment garbage */ in nilfs_sufile_do_scrap()
476 nilfs_warn(sufile->i_sb, "%s: segment %llu is already clean", in nilfs_sufile_do_free()
482 nilfs_warn(sufile->i_sb, "free segment %llu marked in error", in nilfs_sufile_do_free()
487 nilfs_warn(sufile->i_sb, "free unallocated segment %llu", in nilfs_sufile_do_free()
503 * nilfs_sufile_mark_dirty - mark the buffer having a segment usage dirty
504 * @sufile: inode of segment usage file
505 * @segnum: segment number
519 "segment usage for segment %llu is unreadable due to a hole block", in nilfs_sufile_mark_dirty()
535 "active segment %llu is erroneous", in nilfs_sufile_mark_dirty()
560 * nilfs_sufile_set_segment_usage - set usage of a segment
561 * @sufile: inode of segment usage file
562 * @segnum: segment number
563 * @nblocks: number of live blocks in the segment
602 * nilfs_sufile_get_stat - get segment usage statistics
603 * @sufile: inode of segment usage file
604 * @sustat: pointer to a structure of segment usage statistics
606 * Description: nilfs_sufile_get_stat() returns information about segment
609 * Return Value: On success, 0 is returned, and segment usage information is
676 * nilfs_sufile_truncate_range - truncate range of segment array
677 * @sufile: inode of segment usage file
678 * @start: start segment number (inclusive)
679 * @end: end segment number (inclusive)
781 * nilfs_sufile_resize - resize segment array
782 * @sufile: inode of segment usage file
832 * the segment allocation space while locking the semaphore in nilfs_sufile_resize()
857 * nilfs_sufile_get_suinfo - get segment usage information
858 * @sufile: inode of segment usage file
859 * @segnum: segment number to start looking
864 * Return: Count of segment usage info items stored in the output buffer on
928 * nilfs_sufile_set_suinfo - sets segment usage info
929 * @sufile: inode of segment usage file
935 * segment usage accordingly. Only the fields indicated by the sup_flags
945 * %-EINVAL - Invalid values in input (segment number, flags or nblocks)
1060 * @sufile: inode of segment usage file
1069 * and start+len is rounded down. For each clean segment blkdev_issue_discard
1213 * @susize: size of a segment usage entry
1228 nilfs_err(sb, "too large segment usage size: %zu bytes", in nilfs_sufile_read()
1232 nilfs_err(sb, "too small segment usage size: %zu bytes", in nilfs_sufile_read()
1258 "missing header block in segment usage metadata"); in nilfs_sufile_read()