[10/11] mm: Remove filemap_fdatawait_range_keep_errors()
Commit Message
This function is now the same as filemap_fdatawait_range(), so change
both callers to use that instead.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
fs/jbd2/commit.c | 12 +++++-------
include/linux/pagemap.h | 2 --
2 files changed, 5 insertions(+), 9 deletions(-)
@@ -221,11 +221,10 @@ EXPORT_SYMBOL(jbd2_submit_inode_data);
int jbd2_wait_inode_data(journal_t *journal, struct jbd2_inode *jinode)
{
if (!jinode || !(jinode->i_flags & JI_WAIT_DATA) ||
- !jinode->i_vfs_inode || !jinode->i_vfs_inode->i_mapping)
+ !jinode->i_vfs_inode || !jinode->i_vfs_inode->i_mapping)
return 0;
- return filemap_fdatawait_range_keep_errors(
- jinode->i_vfs_inode->i_mapping, jinode->i_dirty_start,
- jinode->i_dirty_end);
+ return filemap_fdatawait_range(jinode->i_vfs_inode->i_mapping,
+ jinode->i_dirty_start, jinode->i_dirty_end);
}
EXPORT_SYMBOL(jbd2_wait_inode_data);
@@ -270,9 +269,8 @@ int jbd2_journal_finish_inode_data_buffers(struct jbd2_inode *jinode)
{
struct address_space *mapping = jinode->i_vfs_inode->i_mapping;
- return filemap_fdatawait_range_keep_errors(mapping,
- jinode->i_dirty_start,
- jinode->i_dirty_end);
+ return filemap_fdatawait_range(mapping, jinode->i_dirty_start,
+ jinode->i_dirty_end);
}
/*
@@ -40,8 +40,6 @@ static inline int filemap_fdatawait(struct address_space *mapping)
return filemap_fdatawait_range(mapping, 0, LLONG_MAX);
}
-#define filemap_fdatawait_range_keep_errors(mapping, start, end) \
- filemap_fdatawait_range(mapping, start, end)
#define filemap_fdatawait_keep_errors(mapping) filemap_fdatawait(mapping)
bool filemap_range_has_page(struct address_space *, loff_t lstart, loff_t lend);