From ff35c838d857c189874481f52f65cf54183e908b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Feb 2002 20:29:55 -0800 Subject: v2.4.13.2 -> v2.4.13.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - René Scharfe: random bugfix - me: block device queuing low-water-marks, VM mapped tweaking. --- include/linux/blkdev.h | 9 ++++++--- include/linux/pagemap.h | 1 + include/linux/swap.h | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'include/linux') diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index c62eaeea7608..9dbef2980770 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -66,14 +66,17 @@ typedef void (unplug_device_fn) (void *q); */ #define QUEUE_NR_REQUESTS 8192 +struct request_list { + unsigned int count; + struct list_head free; +}; + struct request_queue { /* * the queue request freelist, one for reads and one for writes */ - struct list_head request_freelist[2]; - struct list_head pending_freelist[2]; - int pending_free[2]; + struct request_list rq[2]; /* * Together with queue_head for cacheline sharing diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 5007df9732eb..1fda6fa35b24 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -82,6 +82,7 @@ extern struct page * find_or_create_page(struct address_space *mapping, extern void lock_page(struct page *page); #define find_lock_page(mapping, index) \ __find_lock_page(mapping, index, page_hash(mapping, index)) +extern struct page *find_trylock_page(struct address_space *, unsigned long); extern void add_to_page_cache(struct page * page, struct address_space *mapping, unsigned long index); extern void add_to_page_cache_locked(struct page * page, struct address_space *mapping, unsigned long index); diff --git a/include/linux/swap.h b/include/linux/swap.h index 34f693fe8a22..ffa8134438cc 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -145,6 +145,7 @@ extern int swap_duplicate(swp_entry_t); extern int swap_count(struct page *); extern int valid_swaphandles(swp_entry_t, unsigned long *); extern void swap_free(swp_entry_t); +extern void free_swap_and_cache(swp_entry_t); struct swap_list_t { int head; /* head of priority-ordered swapfile list */ int next; /* swapfile to be used next */ -- cgit v1.2.3