readahead: mmap read-around simplification
Fold file_ra_state.mmap_hit into file_ra_state.mmap_miss and make it an int. Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
937085aa35
commit
0bb7ba6b9c
@ -703,8 +703,7 @@ struct file_ra_state {
|
||||
there are only # of pages ahead */
|
||||
|
||||
unsigned int 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 */
|
||||
int 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 */
|
||||
};
|
||||
|
Reference in New Issue
Block a user