diff options
author | Jens Axboe <axboe@suse.de> | 2006-05-02 09:03:27 -0400 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-05-02 09:03:27 -0400 |
commit | a893b99be71f1d669b74f840e3a683dd077d007b (patch) | |
tree | 79591f70b57ef4504dc5c9584b7d8fcaa04faede /include/linux/pipe_fs_i.h | |
parent | 7591489a8fbee83f19bacc75756989a6a4d0389c (diff) |
[PATCH] splice: fix page LRU accounting
Currently we rely on the PIPE_BUF_FLAG_LRU flag being set correctly
to know whether we need to fiddle with page LRU state after stealing it,
however for some origins we just don't know if the page is on the LRU
list or not.
So remove PIPE_BUF_FLAG_LRU and do this check/add manually in pipe_to_file()
instead.
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'include/linux/pipe_fs_i.h')
-rw-r--r-- | include/linux/pipe_fs_i.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h index df4d3fa7d3dc..070954f05947 100644 --- a/include/linux/pipe_fs_i.h +++ b/include/linux/pipe_fs_i.h | |||
@@ -5,9 +5,8 @@ | |||
5 | 5 | ||
6 | #define PIPE_BUFFERS (16) | 6 | #define PIPE_BUFFERS (16) |
7 | 7 | ||
8 | #define PIPE_BUF_FLAG_LRU 0x01 /* page is on the LRU */ | 8 | #define PIPE_BUF_FLAG_ATOMIC 0x01 /* was atomically mapped */ |
9 | #define PIPE_BUF_FLAG_ATOMIC 0x02 /* was atomically mapped */ | 9 | #define PIPE_BUF_FLAG_GIFT 0x02 /* page is a gift */ |
10 | #define PIPE_BUF_FLAG_GIFT 0x04 /* page is a gift */ | ||
11 | 10 | ||
12 | struct pipe_buffer { | 11 | struct pipe_buffer { |
13 | struct page *page; | 12 | struct page *page; |