Lines Matching full:window

180  * The reservation window structure operations
217 printk("reservation window 0x%p " in __rsv_window_dump()
240 printk("Window map complete.\n"); in __rsv_window_dump()
251 * @rsv: inode's reservation window
257 * own block reservation window range.
259 * If the reservation window is outside the goal allocation group, return 0;
262 * If the goal block is within the reservation window, return 1;
288 * Find the reserved window which includes the goal, or the previous one
289 * if the goal is not in any window.
325 * ext2_rsv_window_add() -- Insert a window to the block reservation rb tree.
327 * @rsv: reservation window to add
362 * rsv_window_remove() -- unlink a window from the reservation rb tree
364 * @rsv: reservation window to remove
366 * Mark the block reservation window as not allocated, and unlink it
367 * from the filesystem reservation window rb tree. Must be called with
380 * rsv_is_empty() -- Check if the reservation window is allocated.
381 * @rsv: given reservation window to check
395 * Allocate and initialize the reservation window structure, and
396 * link the window to the ext2 inode structure at last
398 * The reservation window structure is only dynamically allocated
401 * regular files, we should check whether the reservation window
407 * when setting the reservation window size through ioctl before the file
427 * reservation window size is set to zero to indicate in ext2_init_block_alloc_info()
445 * Discard(free) block reservation window on last file close, or truncate
648 * @my_rsv: reservation window
655 * if there is a reservation window, only try to allocate block(s)
656 * from the file's own reservation window;
676 /* we do allocation within the reservation window if we have a window */ in ext2_try_to_allocate()
724 * It does not allocate the reservation window for now:
744 * This could handle the cross boundary reservation window
765 /* TODO: make the start of the reservation window byte-aligned */ in find_next_reservable_window()
814 * return the reservation window that we could append to. in find_next_reservable_window()
822 * Let's book the whole available window for now. We will check the in find_next_reservable_window()
824 * the window size if it's larger than requested. in find_next_reservable_window()
839 * alloc_new_reservation()--allocate a new reservation window
843 * allocate a new reservation window near the allocation goal,
860 * failed: we failed to find a reservation window in this group
900 * and if the goal is inside the old reservation window, in alloc_new_reservation()
902 * the first part of the window. We still have another part in alloc_new_reservation()
904 * point to discard our window and try to allocate a new one in alloc_new_reservation()
906 * keep the reservation window, just simply move on. in alloc_new_reservation()
909 * window to the first block of next group. in alloc_new_reservation()
922 * the reservation window the next time, in alloc_new_reservation()
923 * otherwise we keep the same size window in alloc_new_reservation()
934 * shift the search start to the window near the goal block in alloc_new_reservation()
939 * find_next_reservable_window() simply finds a reservable window in alloc_new_reservation()
942 * To make sure the reservation window has a free bit inside it, we in alloc_new_reservation()
943 * need to check the bitmap after we found a reservable window. in alloc_new_reservation()
958 * reservation window where there is a reservable space after it. in alloc_new_reservation()
1002 * @my_rsv: given reservation window
1006 * Attempt to expand the reservation window large enough to have
1010 * the reservation window range, if the window size is too small,
1012 * window. To make this more efficient, given the total number of
1013 * blocks needed and the current size of the window, we try to
1014 * expand the reservation window size if necessary on a best-effort
1049 * @my_rsv: reservation window
1052 * window.
1055 * its own reservation. If it does not have a reservation window, instead of
1057 * see if it is inside somebody else's reservation window, we try to allocate a
1058 * reservation window for it starting from the goal first. Then do the block
1059 * allocation within the reservation window.
1099 * window. in ext2_try_to_allocate_with_rsv()
1101 * We need to allocate a new reservation window, if: in ext2_try_to_allocate_with_rsv()
1102 * a) inode does not have a reservation window; or in ext2_try_to_allocate_with_rsv()
1105 * c) we come here with a goal and with a reservation window in ext2_try_to_allocate_with_rsv()
1107 * We do not need to allocate a new reservation window if we come here in ext2_try_to_allocate_with_rsv()
1108 * at the beginning with a goal and the goal is inside the window, or in ext2_try_to_allocate_with_rsv()
1109 * we don't have a goal but already have a reservation window. in ext2_try_to_allocate_with_rsv()
1110 * then we could go to allocate from the reservation window directly. in ext2_try_to_allocate_with_rsv()
1250 * the desired window size is greater than 0 (One could use ioctl in ext2_new_blocks()
1251 * command EXT2_IOC_SETRSVSZ to set the window size to 0 to turn off in ext2_new_blocks()
1335 * window size. in ext2_new_blocks()