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 */
121 * @sufile: inode of segment usage file
129 * nilfs_sufile_updatev - modify multiple segment usages at a time
130 * @sufile: inode of segment usage file
131 * @segnumv: array of segment numbers
140 * segment usage entry is contained. If @ndone is given, the number
151 * %-ENOENT - Given segment usage is in hole block (may be returned if
154 * %-EINVAL - Invalid segment usage number
175 "%s: invalid segment number: %llu", in nilfs_sufile_updatev()
233 nilfs_warn(sufile->i_sb, "%s: invalid segment number: %llu", in nilfs_sufile_update()
256 * nilfs_sufile_set_alloc_range - limit range of segment to be allocated
257 * @sufile: inode of segment usage file
258 * @start: minimum segment number of allocatable region (inclusive)
259 * @end: maximum segment number of allocatable region (inclusive)
264 * %-ERANGE - invalid segment region
285 * nilfs_sufile_alloc - allocate a segment
286 * @sufile: inode of segment usage file
287 * @segnump: pointer to segment number
289 * Description: nilfs_sufile_alloc() allocates a clean segment.
291 * Return Value: On success, 0 is returned and the segment number of the
292 * allocated segment is stored in the place pointed by @segnump. On error, one
299 * %-ENOSPC - No clean segment left.
364 /* found a clean segment */ in nilfs_sufile_alloc()
412 nilfs_warn(sufile->i_sb, "%s: segment %llu must be clean", in nilfs_sufile_do_cancel_free()
445 /* make the segment garbage */ in nilfs_sufile_do_scrap()
469 nilfs_warn(sufile->i_sb, "%s: segment %llu is already clean", in nilfs_sufile_do_free()
491 * nilfs_sufile_mark_dirty - mark the buffer having a segment usage dirty
492 * @sufile: inode of segment usage file
493 * @segnum: segment number
518 * nilfs_sufile_set_segment_usage - set usage of a segment
519 * @sufile: inode of segment usage file
520 * @segnum: segment number
521 * @nblocks: number of live blocks in the segment
555 * nilfs_sufile_get_stat - get segment usage statistics
556 * @sufile: inode of segment usage file
557 * @sustat: pointer to a structure of segment usage statistics
559 * Description: nilfs_sufile_get_stat() returns information about segment
562 * Return Value: On success, 0 is returned, and segment usage information is
629 * nilfs_sufile_truncate_range - truncate range of segment array
630 * @sufile: inode of segment usage file
631 * @start: start segment number (inclusive)
632 * @end: end segment number (inclusive)
734 * nilfs_sufile_resize - resize segment array
735 * @sufile: inode of segment usage file
785 * the segment allocation space while locking the semaphore in nilfs_sufile_resize()
811 * @sufile: inode of segment usage file
812 * @segnum: segment number to start looking
885 * nilfs_sufile_set_suinfo - sets segment usage info
886 * @sufile: inode of segment usage file
892 * segment usage accordingly. Only the fields indicated by the sup_flags
902 * %-EINVAL - Invalid values in input (segment number, flags or nblocks)
1017 * @sufile: inode of segment usage file
1026 * and start+len is rounded down. For each clean segment blkdev_issue_discard
1170 * @susize: size of a segment usage entry
1185 nilfs_err(sb, "too large segment usage size: %zu bytes", in nilfs_sufile_read()
1189 nilfs_err(sb, "too small segment usage size: %zu bytes", in nilfs_sufile_read()