Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61573
b: refs/heads/master
c: c743d96
h: refs/heads/master
i:
  61571: bfd096c
v: v3
  • Loading branch information
Fengguang Wu authored and Linus Torvalds committed Jul 19, 2007
1 parent d8dd05a commit 4fe3c38
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 366 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc7868fcb9a73990e6f30371c1be465c436a7a7f
refs/heads/master: c743d96b6d2ff55a94df7b5ac7c74987bb9c343b
11 changes: 1 addition & 10 deletions trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -701,14 +701,6 @@ struct fown_struct {
* file_ra_state.la_index .ra_index .lookahead_index .readahead_index
*/
struct file_ra_state {
unsigned long start; /* Current window */
unsigned long size;
unsigned long flags; /* ra flags RA_FLAG_xxx*/
unsigned long cache_hit; /* cache hit count*/
unsigned long prev_index; /* Cache last read() position */
unsigned long ahead_start; /* Ahead window */
unsigned long ahead_size;

pgoff_t la_index; /* enqueue time */
pgoff_t ra_index; /* begin offset */
pgoff_t lookahead_index; /* time to do next readahead */
Expand All @@ -717,10 +709,9 @@ struct file_ra_state {
unsigned long ra_pages; /* Maximum readahead window */
unsigned long mmap_hit; /* Cache hit stat for mmap accesses */
unsigned long mmap_miss; /* Cache miss stat for mmap accesses */
unsigned long prev_index; /* Cache last read() position */
unsigned int prev_offset; /* Offset where last read() ended in a page */
};
#define RA_FLAG_MISS 0x01 /* a cache miss occured against this file */
#define RA_FLAG_INCACHE 0x02 /* file is already in cache */

/*
* Measuring read-ahead sizes.
Expand Down
7 changes: 0 additions & 7 deletions trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -1144,13 +1144,6 @@ unsigned long page_cache_readahead_ondemand(struct address_space *mapping,
struct page *page,
pgoff_t offset,
unsigned long size);
unsigned long page_cache_readahead(struct address_space *mapping,
struct file_ra_state *ra,
struct file *filp,
pgoff_t offset,
unsigned long size);
void handle_ra_miss(struct address_space *mapping,
struct file_ra_state *ra, pgoff_t offset);
unsigned long max_sane_readahead(unsigned long nr);

/* Do stack extension */
Expand Down
Loading

0 comments on commit 4fe3c38

Please sign in to comment.