aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs')
-rw-r--r--fs/reiserfs/inode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index d60f6238c66a..62e18c19b446 100644
--- a/fs/reiserfs/inode.c
+++ b/fs/reiserfs/inode.c
@@ -2793,7 +2793,7 @@ static int invalidatepage_can_drop(struct inode *inode, struct buffer_head *bh)
2793} 2793}
2794 2794
2795/* clm -- taken from fs/buffer.c:block_invalidate_page */ 2795/* clm -- taken from fs/buffer.c:block_invalidate_page */
2796static int reiserfs_invalidatepage(struct page *page, unsigned long offset) 2796static void reiserfs_invalidatepage(struct page *page, unsigned long offset)
2797{ 2797{
2798 struct buffer_head *head, *bh, *next; 2798 struct buffer_head *head, *bh, *next;
2799 struct inode *inode = page->mapping->host; 2799 struct inode *inode = page->mapping->host;
@@ -2832,10 +2832,12 @@ static int reiserfs_invalidatepage(struct page *page, unsigned long offset)
2832 * The get_block cached value has been unconditionally invalidated, 2832 * The get_block cached value has been unconditionally invalidated,
2833 * so real IO is not possible anymore. 2833 * so real IO is not possible anymore.
2834 */ 2834 */
2835 if (!offset && ret) 2835 if (!offset && ret) {
2836 ret = try_to_release_page(page, 0); 2836 ret = try_to_release_page(page, 0);
2837 /* maybe should BUG_ON(!ret); - neilb */
2838 }
2837 out: 2839 out:
2838 return ret; 2840 return;
2839} 2841}
2840 2842
2841static int reiserfs_set_page_dirty(struct page *page) 2843static int reiserfs_set_page_dirty(struct page *page)