Lines Matching full:window
177 * The reservation window structure operations
214 printk("reservation window 0x%p " in __rsv_window_dump()
237 printk("Window map complete.\n"); in __rsv_window_dump()
248 * @rsv: inode's reservation window
254 * own block reservation window range.
256 * If the reservation window is outside the goal allocation group, return 0;
259 * If the goal block is within the reservation window, return 1;
285 * Find the reserved window which includes the goal, or the previous one
286 * if the goal is not in any window.
322 * ext2_rsv_window_add() -- Insert a window to the block reservation rb tree.
324 * @rsv: reservation window to add
359 * rsv_window_remove() -- unlink a window from the reservation rb tree
361 * @rsv: reservation window to remove
363 * Mark the block reservation window as not allocated, and unlink it
364 * from the filesystem reservation window rb tree. Must be called with
377 * rsv_is_empty() -- Check if the reservation window is allocated.
378 * @rsv: given reservation window to check
392 * Allocate and initialize the reservation window structure, and
393 * link the window to the ext2 inode structure at last
395 * The reservation window structure is only dynamically allocated
398 * regular files, we should check whether the reservation window
404 * when setting the reservation window size through ioctl before the file
424 * reservation window size is set to zero to indicate in ext2_init_block_alloc_info()
442 * Discard(free) block reservation window on last file close, or truncate
645 * @my_rsv: reservation window
652 * if there is a reservation window, only try to allocate block(s)
653 * from the file's own reservation window;
673 /* we do allocation within the reservation window if we have a window */ in ext2_try_to_allocate()
727 * It does not allocate the reservation window: alloc_new_reservation()
743 * window request.
760 /* TODO: make the start of the reservation window byte-aligned */ in find_next_reservable_window()
809 * return the reservation window that we could append to. in find_next_reservable_window()
817 * Let's book the whole available window for now. We will check the in find_next_reservable_window()
819 * the window size if it's larger than requested. in find_next_reservable_window()
834 * alloc_new_reservation - Allocate a new reservation window.
843 * reservation window near @grp_goal, or the beginning of the
860 * Return: 0 on success, -1 if we failed to find a reservation window
888 * and if the goal is inside the old reservation window, in alloc_new_reservation()
890 * the first part of the window. We still have another part in alloc_new_reservation()
892 * point to discard our window and try to allocate a new one in alloc_new_reservation()
894 * keep the reservation window, just simply move on. in alloc_new_reservation()
897 * window to the first block of next group. in alloc_new_reservation()
910 * the reservation window the next time, in alloc_new_reservation()
911 * otherwise we keep the same size window in alloc_new_reservation()
922 * shift the search start to the window near the goal block in alloc_new_reservation()
927 * find_next_reservable_window() simply finds a reservable window in alloc_new_reservation()
930 * To make sure the reservation window has a free bit inside it, we in alloc_new_reservation()
931 * need to check the bitmap after we found a reservable window. in alloc_new_reservation()
946 * reservation window where there is a reservable space after it. in alloc_new_reservation()
990 * @my_rsv: given reservation window
994 * Attempt to expand the reservation window large enough to have
998 * the reservation window range, if the window size is too small,
1000 * window. To make this more efficient, given the total number of
1001 * blocks needed and the current size of the window, we try to
1002 * expand the reservation window size if necessary on a best-effort
1037 * @my_rsv: reservation window
1040 * window.
1043 * its own reservation. If it does not have a reservation window, instead of
1045 * see if it is inside somebody else's reservation window, we try to allocate a
1046 * reservation window for it starting from the goal first. Then do the block
1047 * allocation within the reservation window.
1087 * window. in ext2_try_to_allocate_with_rsv()
1089 * We need to allocate a new reservation window, if: in ext2_try_to_allocate_with_rsv()
1090 * a) inode does not have a reservation window; or in ext2_try_to_allocate_with_rsv()
1093 * c) we come here with a goal and with a reservation window in ext2_try_to_allocate_with_rsv()
1095 * We do not need to allocate a new reservation window if we come here in ext2_try_to_allocate_with_rsv()
1096 * at the beginning with a goal and the goal is inside the window, or in ext2_try_to_allocate_with_rsv()
1097 * we don't have a goal but already have a reservation window. in ext2_try_to_allocate_with_rsv()
1098 * then we could go to allocate from the reservation window directly. in ext2_try_to_allocate_with_rsv()
1243 * file, and the desired window size is greater than 0 (One could use in ext2_new_blocks()
1244 * ioctl command EXT2_IOC_SETRSVSZ to set the window size to 0 to turn in ext2_new_blocks()
1246 * reservation window if the caller asked us not to do it. in ext2_new_blocks()
1329 * window size. in ext2_new_blocks()