hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/hpfs/file.c
....@@ -9,6 +9,7 @@
99
1010 #include "hpfs_fn.h"
1111 #include <linux/mpage.h>
12
+#include <linux/fiemap.h>
1213
1314 #define BLOCKS(size) (((size) + 511) >> 9)
1415
....@@ -125,10 +126,9 @@
125126 return block_write_full_page(page, hpfs_get_block, wbc);
126127 }
127128
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)
130130 {
131
- return mpage_readpages(mapping, pages, nr_pages, hpfs_get_block);
131
+ mpage_readahead(rac, hpfs_get_block);
132132 }
133133
134134 static int hpfs_writepages(struct address_space *mapping,
....@@ -198,7 +198,7 @@
198198 const struct address_space_operations hpfs_aops = {
199199 .readpage = hpfs_readpage,
200200 .writepage = hpfs_writepage,
201
- .readpages = hpfs_readpages,
201
+ .readahead = hpfs_readahead,
202202 .writepages = hpfs_writepages,
203203 .write_begin = hpfs_write_begin,
204204 .write_end = hpfs_write_end,
....@@ -215,6 +215,7 @@
215215 .fsync = hpfs_file_fsync,
216216 .splice_read = generic_file_splice_read,
217217 .unlocked_ioctl = hpfs_ioctl,
218
+ .compat_ioctl = compat_ptr_ioctl,
218219 };
219220
220221 const struct inode_operations hpfs_file_iops =