aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/inode.c
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-09-16 05:50:16 -0400
committerAndi Kleen <ak@linux.intel.com>2009-09-16 05:50:16 -0400
commitaa261f549d7652258331ebb12795f3bc4395d213 (patch)
tree0ca807db32a6e3f213fa52b5a053d2b27e5e6bac /fs/ext3/inode.c
parent6a46079cf57a7f7758e8b926980a4f852f89b34d (diff)
HWPOISON: Enable .remove_error_page for migration aware file systems
Enable removing of corrupted pages through truncation for a bunch of file systems: ext*, xfs, gfs2, ocfs2, ntfs These should cover most server needs. I chose the set of migration aware file systems for this for now, assuming they have been especially audited. But in general it should be safe for all file systems on the data area that support read/write and truncate. Caveat: the hardware error handler does not take i_mutex for now before calling the truncate function. Is that ok? Cc: tytso@mit.edu Cc: hch@infradead.org Cc: mfasheh@suse.com Cc: aia21@cantab.net Cc: hugh.dickins@tiscali.co.uk Cc: swhiteho@redhat.com Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'fs/ext3/inode.c')
-rw-r--r--fs/ext3/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index b49908a167ae..953b430f92e3 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -1819,6 +1819,7 @@ static const struct address_space_operations ext3_ordered_aops = {
1819 .direct_IO = ext3_direct_IO, 1819 .direct_IO = ext3_direct_IO,
1820 .migratepage = buffer_migrate_page, 1820 .migratepage = buffer_migrate_page,
1821 .is_partially_uptodate = block_is_partially_uptodate, 1821 .is_partially_uptodate = block_is_partially_uptodate,
1822 .error_remove_page = generic_error_remove_page,
1822}; 1823};
1823 1824
1824static const struct address_space_operations ext3_writeback_aops = { 1825static const struct address_space_operations ext3_writeback_aops = {
@@ -1834,6 +1835,7 @@ static const struct address_space_operations ext3_writeback_aops = {
1834 .direct_IO = ext3_direct_IO, 1835 .direct_IO = ext3_direct_IO,
1835 .migratepage = buffer_migrate_page, 1836 .migratepage = buffer_migrate_page,
1836 .is_partially_uptodate = block_is_partially_uptodate, 1837 .is_partially_uptodate = block_is_partially_uptodate,
1838 .error_remove_page = generic_error_remove_page,
1837}; 1839};
1838 1840
1839static const struct address_space_operations ext3_journalled_aops = { 1841static const struct address_space_operations ext3_journalled_aops = {
@@ -1848,6 +1850,7 @@ static const struct address_space_operations ext3_journalled_aops = {
1848 .invalidatepage = ext3_invalidatepage, 1850 .invalidatepage = ext3_invalidatepage,
1849 .releasepage = ext3_releasepage, 1851 .releasepage = ext3_releasepage,
1850 .is_partially_uptodate = block_is_partially_uptodate, 1852 .is_partially_uptodate = block_is_partially_uptodate,
1853 .error_remove_page = generic_error_remove_page,
1851}; 1854};
1852 1855
1853void ext3_set_aops(struct inode *inode) 1856void ext3_set_aops(struct inode *inode)