Lines Matching full:window

178  * The reservation window structure operations
215 printk("reservation window 0x%p " in __rsv_window_dump()
238 printk("Window map complete.\n"); in __rsv_window_dump()
249 * @rsv: inode's reservation window
255 * own block reservation window range.
257 * If the reservation window is outside the goal allocation group, return 0;
260 * If the goal block is within the reservation window, return 1;
286 * Find the reserved window which includes the goal, or the previous one
287 * if the goal is not in any window.
323 * ext2_rsv_window_add() -- Insert a window to the block reservation rb tree.
325 * @rsv: reservation window to add
360 * rsv_window_remove() -- unlink a window from the reservation rb tree
362 * @rsv: reservation window to remove
364 * Mark the block reservation window as not allocated, and unlink it
365 * from the filesystem reservation window rb tree. Must be called with
378 * rsv_is_empty() -- Check if the reservation window is allocated.
379 * @rsv: given reservation window to check
393 * Allocate and initialize the reservation window structure, and
394 * link the window to the ext2 inode structure at last
396 * The reservation window structure is only dynamically allocated
399 * regular files, we should check whether the reservation window
405 * when setting the reservation window size through ioctl before the file
425 * reservation window size is set to zero to indicate in ext2_init_block_alloc_info()
443 * Discard(free) block reservation window on last file close, or truncate
646 * @my_rsv: reservation window
653 * if there is a reservation window, only try to allocate block(s)
654 * from the file's own reservation window;
674 /* we do allocation within the reservation window if we have a window */ in ext2_try_to_allocate()
722 * It does not allocate the reservation window for now:
742 * This could handle the cross boundary reservation window
763 /* TODO: make the start of the reservation window byte-aligned */ in find_next_reservable_window()
812 * return the reservation window that we could append to. in find_next_reservable_window()
820 * Let's book the whole available window for now. We will check the in find_next_reservable_window()
822 * the window size if it's larger than requested. in find_next_reservable_window()
837 * alloc_new_reservation()--allocate a new reservation window
841 * allocate a new reservation window near the allocation goal,
858 * failed: we failed to find a reservation window in this group
898 * and if the goal is inside the old reservation window, in alloc_new_reservation()
900 * the first part of the window. We still have another part in alloc_new_reservation()
902 * point to discard our window and try to allocate a new one in alloc_new_reservation()
904 * keep the reservation window, just simply move on. in alloc_new_reservation()
907 * window to the first block of next group. in alloc_new_reservation()
920 * the reservation window the next time, in alloc_new_reservation()
921 * otherwise we keep the same size window in alloc_new_reservation()
932 * shift the search start to the window near the goal block in alloc_new_reservation()
937 * find_next_reservable_window() simply finds a reservable window in alloc_new_reservation()
940 * To make sure the reservation window has a free bit inside it, we in alloc_new_reservation()
941 * need to check the bitmap after we found a reservable window. in alloc_new_reservation()
956 * reservation window where there is a reservable space after it. in alloc_new_reservation()
1000 * @my_rsv: given reservation window
1004 * Attempt to expand the reservation window large enough to have
1008 * the reservation window range, if the window size is too small,
1010 * window. To make this more efficient, given the total number of
1011 * blocks needed and the current size of the window, we try to
1012 * expand the reservation window size if necessary on a best-effort
1047 * @my_rsv: reservation window
1050 * window.
1053 * its own reservation. If it does not have a reservation window, instead of
1055 * see if it is inside somebody else's reservation window, we try to allocate a
1056 * reservation window for it starting from the goal first. Then do the block
1057 * allocation within the reservation window.
1097 * window. in ext2_try_to_allocate_with_rsv()
1099 * We need to allocate a new reservation window, if: in ext2_try_to_allocate_with_rsv()
1100 * a) inode does not have a reservation window; or in ext2_try_to_allocate_with_rsv()
1103 * c) we come here with a goal and with a reservation window in ext2_try_to_allocate_with_rsv()
1105 * We do not need to allocate a new reservation window if we come here in ext2_try_to_allocate_with_rsv()
1106 * at the beginning with a goal and the goal is inside the window, or in ext2_try_to_allocate_with_rsv()
1107 * we don't have a goal but already have a reservation window. in ext2_try_to_allocate_with_rsv()
1108 * then we could go to allocate from the reservation window directly. in ext2_try_to_allocate_with_rsv()
1248 * the desired window size is greater than 0 (One could use ioctl in ext2_new_blocks()
1249 * command EXT2_IOC_SETRSVSZ to set the window size to 0 to turn off in ext2_new_blocks()
1333 * window size. in ext2_new_blocks()