-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathreadahead.h
42 lines (33 loc) · 952 Bytes
/
readahead.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* Copyright 2001, 2002, 2003 by Hans Reiser, licensing governed by
* reiser4/README */
#ifndef __READAHEAD_H__
#define __READAHEAD_H__
#include "key.h"
typedef enum {
RA_ADJACENT_ONLY = 1, /* only requests nodes which are adjacent.
Default is NO (not only adjacent) */
} ra_global_flags;
/* reiser4 super block has a field of this type.
It controls readahead during tree traversals */
struct formatted_ra_params {
unsigned long max; /* request not more than this amount of nodes.
Default is totalram_pages() / 4 */
int flags;
};
typedef struct {
reiser4_key key_to_stop;
} ra_info_t;
void formatted_readahead(znode * , ra_info_t *);
void reiser4_init_ra_info(ra_info_t *rai);
extern void reiser4_readdir_readahead_init(struct inode *dir, tap_t *tap);
/* __READAHEAD_H__ */
#endif
/*
Local variables:
c-indentation-style: "K&R"
mode-name: "LC"
c-basic-offset: 8
tab-width: 8
fill-column: 120
End:
*/