Lines Matching full:window

179  * The reservation window structure operations
216 printk("reservation window 0x%p " in __rsv_window_dump()
239 printk("Window map complete.\n"); in __rsv_window_dump()
250 * @rsv: inode's reservation window
256 * own block reservation window range.
258 * If the reservation window is outside the goal allocation group, return 0;
261 * If the goal block is within the reservation window, return 1;
287 * Find the reserved window which includes the goal, or the previous one
288 * if the goal is not in any window.
324 * ext2_rsv_window_add() -- Insert a window to the block reservation rb tree.
326 * @rsv: reservation window to add
361 * rsv_window_remove() -- unlink a window from the reservation rb tree
363 * @rsv: reservation window to remove
365 * Mark the block reservation window as not allocated, and unlink it
366 * from the filesystem reservation window rb tree. Must be called with
379 * rsv_is_empty() -- Check if the reservation window is allocated.
380 * @rsv: given reservation window to check
394 * Allocate and initialize the reservation window structure, and
395 * link the window to the ext2 inode structure at last
397 * The reservation window structure is only dynamically allocated
400 * regular files, we should check whether the reservation window
406 * when setting the reservation window size through ioctl before the file
426 * reservation window size is set to zero to indicate in ext2_init_block_alloc_info()
444 * Discard(free) block reservation window on last file close, or truncate
647 * @my_rsv: reservation window
654 * if there is a reservation window, only try to allocate block(s)
655 * from the file's own reservation window;
675 /* we do allocation within the reservation window if we have a window */ in ext2_try_to_allocate()
723 * It does not allocate the reservation window for now:
743 * This could handle the cross boundary reservation window
764 /* TODO: make the start of the reservation window byte-aligned */ in find_next_reservable_window()
813 * return the reservation window that we could append to. in find_next_reservable_window()
821 * Let's book the whole available window for now. We will check the in find_next_reservable_window()
823 * the window size if it's larger than requested. in find_next_reservable_window()
838 * alloc_new_reservation()--allocate a new reservation window
842 * allocate a new reservation window near the allocation goal,
859 * failed: we failed to find a reservation window in this group
899 * and if the goal is inside the old reservation window, in alloc_new_reservation()
901 * the first part of the window. We still have another part in alloc_new_reservation()
903 * point to discard our window and try to allocate a new one in alloc_new_reservation()
905 * keep the reservation window, just simply move on. in alloc_new_reservation()
908 * window to the first block of next group. in alloc_new_reservation()
921 * the reservation window the next time, in alloc_new_reservation()
922 * otherwise we keep the same size window in alloc_new_reservation()
933 * shift the search start to the window near the goal block in alloc_new_reservation()
938 * find_next_reservable_window() simply finds a reservable window in alloc_new_reservation()
941 * To make sure the reservation window has a free bit inside it, we in alloc_new_reservation()
942 * need to check the bitmap after we found a reservable window. in alloc_new_reservation()
957 * reservation window where there is a reservable space after it. in alloc_new_reservation()
1001 * @my_rsv: given reservation window
1005 * Attempt to expand the reservation window large enough to have
1009 * the reservation window range, if the window size is too small,
1011 * window. To make this more efficient, given the total number of
1012 * blocks needed and the current size of the window, we try to
1013 * expand the reservation window size if necessary on a best-effort
1048 * @my_rsv: reservation window
1051 * window.
1054 * its own reservation. If it does not have a reservation window, instead of
1056 * see if it is inside somebody else's reservation window, we try to allocate a
1057 * reservation window for it starting from the goal first. Then do the block
1058 * allocation within the reservation window.
1098 * window. in ext2_try_to_allocate_with_rsv()
1100 * We need to allocate a new reservation window, if: in ext2_try_to_allocate_with_rsv()
1101 * a) inode does not have a reservation window; or in ext2_try_to_allocate_with_rsv()
1104 * c) we come here with a goal and with a reservation window in ext2_try_to_allocate_with_rsv()
1106 * We do not need to allocate a new reservation window if we come here in ext2_try_to_allocate_with_rsv()
1107 * at the beginning with a goal and the goal is inside the window, or in ext2_try_to_allocate_with_rsv()
1108 * we don't have a goal but already have a reservation window. in ext2_try_to_allocate_with_rsv()
1109 * then we could go to allocate from the reservation window directly. in ext2_try_to_allocate_with_rsv()
1249 * the desired window size is greater than 0 (One could use ioctl in ext2_new_blocks()
1250 * command EXT2_IOC_SETRSVSZ to set the window size to 0 to turn off in ext2_new_blocks()
1334 * window size. in ext2_new_blocks()