| .. | .. |
|---|
| 9 | 9 | |
|---|
| 10 | 10 | #include "hpfs_fn.h" |
|---|
| 11 | 11 | #include <linux/mpage.h> |
|---|
| 12 | +#include <linux/fiemap.h> |
|---|
| 12 | 13 | |
|---|
| 13 | 14 | #define BLOCKS(size) (((size) + 511) >> 9) |
|---|
| 14 | 15 | |
|---|
| .. | .. |
|---|
| 125 | 126 | return block_write_full_page(page, hpfs_get_block, wbc); |
|---|
| 126 | 127 | } |
|---|
| 127 | 128 | |
|---|
| 128 | | -static int hpfs_readpages(struct file *file, struct address_space *mapping, |
|---|
| 129 | | - struct list_head *pages, unsigned nr_pages) |
|---|
| 129 | +static void hpfs_readahead(struct readahead_control *rac) |
|---|
| 130 | 130 | { |
|---|
| 131 | | - return mpage_readpages(mapping, pages, nr_pages, hpfs_get_block); |
|---|
| 131 | + mpage_readahead(rac, hpfs_get_block); |
|---|
| 132 | 132 | } |
|---|
| 133 | 133 | |
|---|
| 134 | 134 | static int hpfs_writepages(struct address_space *mapping, |
|---|
| .. | .. |
|---|
| 198 | 198 | const struct address_space_operations hpfs_aops = { |
|---|
| 199 | 199 | .readpage = hpfs_readpage, |
|---|
| 200 | 200 | .writepage = hpfs_writepage, |
|---|
| 201 | | - .readpages = hpfs_readpages, |
|---|
| 201 | + .readahead = hpfs_readahead, |
|---|
| 202 | 202 | .writepages = hpfs_writepages, |
|---|
| 203 | 203 | .write_begin = hpfs_write_begin, |
|---|
| 204 | 204 | .write_end = hpfs_write_end, |
|---|
| .. | .. |
|---|
| 215 | 215 | .fsync = hpfs_file_fsync, |
|---|
| 216 | 216 | .splice_read = generic_file_splice_read, |
|---|
| 217 | 217 | .unlocked_ioctl = hpfs_ioctl, |
|---|
| 218 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 218 | 219 | }; |
|---|
| 219 | 220 | |
|---|
| 220 | 221 | const struct inode_operations hpfs_file_iops = |
|---|