Lines Matching full:window

184  * The reservation window structure operations
221 printk("reservation window 0x%p " in __rsv_window_dump()
244 printk("Window map complete.\n"); in __rsv_window_dump()
255 * @rsv: inode's reservation window
261 * own block reservation window range.
263 * If the reservation window is outside the goal allocation group, return 0;
266 * If the goal block is within the reservation window, return 1;
292 * Find the reserved window which includes the goal, or the previous one
293 * if the goal is not in any window.
329 * ext2_rsv_window_add() -- Insert a window to the block reservation rb tree.
331 * @rsv: reservation window to add
366 * rsv_window_remove() -- unlink a window from the reservation rb tree
368 * @rsv: reservation window to remove
370 * Mark the block reservation window as not allocated, and unlink it
371 * from the filesystem reservation window rb tree. Must be called with
384 * rsv_is_empty() -- Check if the reservation window is allocated.
385 * @rsv: given reservation window to check
399 * Allocate and initialize the reservation window structure, and
400 * link the window to the ext2 inode structure at last
402 * The reservation window structure is only dynamically allocated
405 * regular files, we should check whether the reservation window
411 * when setting the reservation window size through ioctl before the file
431 * reservation window size is set to zero to indicate in ext2_init_block_alloc_info()
449 * Discard(free) block reservation window on last file close, or truncate
652 * @my_rsv: reservation window
659 * if there is a reservation window, only try to allocate block(s)
660 * from the file's own reservation window;
680 /* we do allocation within the reservation window if we have a window */ in ext2_try_to_allocate()
734 * It does not allocate the reservation window: alloc_new_reservation()
750 * window request.
767 /* TODO: make the start of the reservation window byte-aligned */ in find_next_reservable_window()
816 * return the reservation window that we could append to. in find_next_reservable_window()
824 * Let's book the whole available window for now. We will check the in find_next_reservable_window()
826 * the window size if it's larger than requested. in find_next_reservable_window()
841 * alloc_new_reservation - Allocate a new reservation window.
850 * reservation window near @grp_goal, or the beginning of the
867 * Return: 0 on success, -1 if we failed to find a reservation window
895 * and if the goal is inside the old reservation window, in alloc_new_reservation()
897 * the first part of the window. We still have another part in alloc_new_reservation()
899 * point to discard our window and try to allocate a new one in alloc_new_reservation()
901 * keep the reservation window, just simply move on. in alloc_new_reservation()
904 * window to the first block of next group. in alloc_new_reservation()
917 * the reservation window the next time, in alloc_new_reservation()
918 * otherwise we keep the same size window in alloc_new_reservation()
929 * shift the search start to the window near the goal block in alloc_new_reservation()
934 * find_next_reservable_window() simply finds a reservable window in alloc_new_reservation()
937 * To make sure the reservation window has a free bit inside it, we in alloc_new_reservation()
938 * need to check the bitmap after we found a reservable window. in alloc_new_reservation()
953 * reservation window where there is a reservable space after it. in alloc_new_reservation()
997 * @my_rsv: given reservation window
1001 * Attempt to expand the reservation window large enough to have
1005 * the reservation window range, if the window size is too small,
1007 * window. To make this more efficient, given the total number of
1008 * blocks needed and the current size of the window, we try to
1009 * expand the reservation window size if necessary on a best-effort
1044 * @my_rsv: reservation window
1047 * window.
1050 * its own reservation. If it does not have a reservation window, instead of
1052 * see if it is inside somebody else's reservation window, we try to allocate a
1053 * reservation window for it starting from the goal first. Then do the block
1054 * allocation within the reservation window.
1094 * window. in ext2_try_to_allocate_with_rsv()
1096 * We need to allocate a new reservation window, if: in ext2_try_to_allocate_with_rsv()
1097 * a) inode does not have a reservation window; or in ext2_try_to_allocate_with_rsv()
1100 * c) we come here with a goal and with a reservation window in ext2_try_to_allocate_with_rsv()
1102 * We do not need to allocate a new reservation window if we come here in ext2_try_to_allocate_with_rsv()
1103 * at the beginning with a goal and the goal is inside the window, or in ext2_try_to_allocate_with_rsv()
1104 * we don't have a goal but already have a reservation window. in ext2_try_to_allocate_with_rsv()
1105 * then we could go to allocate from the reservation window directly. in ext2_try_to_allocate_with_rsv()
1250 * file, and the desired window size is greater than 0 (One could use in ext2_new_blocks()
1251 * ioctl command EXT2_IOC_SETRSVSZ to set the window size to 0 to turn in ext2_new_blocks()
1253 * reservation window if the caller asked us not to do it. in ext2_new_blocks()
1336 * window size. in ext2_new_blocks()