Commit 78264bd9 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: Use buffer_migrate_page() for the ->migratepage function of all ntfs

       address space operations.
Signed-off-by: default avatarAnton Altaparmakov <aia21@cantab.net>
parent 3ccc7384
...@@ -19,13 +19,15 @@ ToDo/Notes: ...@@ -19,13 +19,15 @@ ToDo/Notes:
- Enable the code for setting the NT4 compatibility flag when we start - Enable the code for setting the NT4 compatibility flag when we start
making NTFS 1.2 specific modifications. making NTFS 1.2 specific modifications.
2.1.27 - Various bug fixes. 2.1.27 - Various bug fixes and cleanups.
- Fix two compiler warnings on Alpha. Thanks to Andrew Morton for - Fix two compiler warnings on Alpha. Thanks to Andrew Morton for
reporting them. reporting them.
- Fix an (innocent) off-by-one error in the runlist code. - Fix an (innocent) off-by-one error in the runlist code.
- Fix a buggette in an "should be impossible" case handling where we - Fix a buggette in an "should be impossible" case handling where we
continued the attribute lookup loop instead of aborting it. continued the attribute lookup loop instead of aborting it.
- Use buffer_migrate_page() for the ->migratepage function of all ntfs
address space operations.
2.1.26 - Minor bug fixes and updates. 2.1.26 - Minor bug fixes and updates.
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
*/ */
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/fs.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/swap.h> #include <linux/swap.h>
...@@ -1551,6 +1552,9 @@ struct address_space_operations ntfs_aops = { ...@@ -1551,6 +1552,9 @@ struct address_space_operations ntfs_aops = {
#ifdef NTFS_RW #ifdef NTFS_RW
.writepage = ntfs_writepage, /* Write dirty page to disk. */ .writepage = ntfs_writepage, /* Write dirty page to disk. */
#endif /* NTFS_RW */ #endif /* NTFS_RW */
.migratepage = buffer_migrate_page, /* Move a page cache page from
one physical page to an
other. */
}; };
/** /**
...@@ -1567,6 +1571,9 @@ struct address_space_operations ntfs_mst_aops = { ...@@ -1567,6 +1571,9 @@ struct address_space_operations ntfs_mst_aops = {
without touching the buffers without touching the buffers
belonging to the page. */ belonging to the page. */
#endif /* NTFS_RW */ #endif /* NTFS_RW */
.migratepage = buffer_migrate_page, /* Move a page cache page from
one physical page to an
other. */
}; };
#ifdef NTFS_RW #ifdef NTFS_RW
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment