1 --- linux-2.4.24-l32/mm/filemap.c.inode_ramax 2004-03-14 13:16:21.000000000 -0800
2 +++ linux-2.4.24-l32/mm/filemap.c 2004-03-16 10:57:14.000000000 -0800
5 static inline int get_max_readahead(struct inode * inode)
7 + if (inode->i_mapping->a_ops->max_readahead)
8 + return inode->i_mapping->a_ops->max_readahead(inode);
9 if (!inode->i_dev || !max_readahead[MAJOR(inode->i_dev)])
10 return vm_max_readahead;
11 return max_readahead[MAJOR(inode->i_dev)][MINOR(inode->i_dev)];
12 --- linux-2.4.24-l32/include/linux/fs.h.inode_ramax 2004-03-14 13:15:49.000000000 -0800
13 +++ linux-2.4.24-l32/include/linux/fs.h 2004-03-15 11:56:56.000000000 -0800
15 #define KERNEL_HAS_DIRECT_FILEIO /* Unfortunate kludge due to lack of foresight */
16 int (*direct_fileIO)(int, struct file *, struct kiobuf *, unsigned long, int);
17 void (*removepage)(struct page *); /* called when page gets removed from the inode */
18 +#define KERNEL_HAS_AS_MAX_READAHEAD
19 + int (*max_readahead)(struct inode *);
22 struct address_space {