Lines Matching defs:buffers

22  *	Limit the number of buffers to DM_BUFIO_MEMORY_PERCENT of main memory
24 * Always allocate at least DM_BUFIO_MIN_BUFFERS buffers.
26 * dirty buffers.
40 * Free buffers when they are older than this (seconds)
73 * Linking of buffers:
74 * All buffers are linked to cache_hash with their hash_list field.
76 * Clean buffers that are not being written (B_WRITING not set)
79 * Dirty and clean buffers that are being written are linked to
83 * context), so some clean-not-writing buffers can be held on
303 * Small buffers are allocated with kmem_cache, to use space optimally.
305 * For large buffers, we choose between get_free_pages and vmalloc.
314 * buffers and more I/O will be performed. Don't use __get_free_pages if it
567 * Writing dirty buffers
726 * For debugging, if we set the cache size to 1, no new buffers will
770 * Free a buffer and wake other threads waiting for free buffers.
814 unsigned long buffers;
822 buffers = dm_bufio_cache_size_per_client >>
825 if (buffers < DM_BUFIO_MIN_BUFFERS)
826 buffers = DM_BUFIO_MIN_BUFFERS;
828 *limit_buffers = buffers;
829 *threshold_buffers = buffers * DM_BUFIO_WRITEBACK_PERCENT / 100;
834 * If we are over threshold_buffers, start freeing buffers.
1118 * For performance, it is essential that the buffers are written asynchronously
1173 * dirtying buffers, so we count the number of buffers walked
1174 * and if it exceeds the total number of buffers, it means that
1335 * An optimization so that the buffers are not written one-by-one.
1549 * It is required that there are no references on any buffers.