summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 20:29:55 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-04 20:29:55 -0800
commitff35c838d857c189874481f52f65cf54183e908b (patch)
tree216edc1818398fe5532f518d1b335dfeb3df7e9d /include/linux
parent4fd9cc9e607b22cca3bf5990e677fe90fc8361e6 (diff)
v2.4.13.2 -> v2.4.13.3
- René Scharfe: random bugfix - me: block device queuing low-water-marks, VM mapped tweaking.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blkdev.h9
-rw-r--r--include/linux/pagemap.h1
-rw-r--r--include/linux/swap.h1
3 files changed, 8 insertions, 3 deletions
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 */