aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2013-05-21 23:26:36 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-05-21 23:26:36 -0400
commitd8c8900ac113d2b2b3d382acda198b4ae29b1b51 (patch)
tree7d5874b39bd61a2d31ff3dbf537cddd4b5b5e20a /fs/ext3
parentca99fdd26b450cfc1dbcb6b01e1753ee5e6c88e0 (diff)
jbd: change journal_invalidatepage() to accept length
->invalidatepage() aop now accepts range to invalidate so we can make use of it in journal_invalidatepage() and all the users in ext3 file system. Also update ext3 trace point to print out length argument. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext3')
-rw-r--r--fs/ext3/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c
index b6e5934f5dd6..f67668f724ba 100644
--- a/fs/ext3/inode.c
+++ b/fs/ext3/inode.c
@@ -1830,15 +1830,15 @@ static void ext3_invalidatepage(struct page *page, unsigned int offset,
1830{ 1830{
1831 journal_t *journal = EXT3_JOURNAL(page->mapping->host); 1831 journal_t *journal = EXT3_JOURNAL(page->mapping->host);
1832 1832
1833 trace_ext3_invalidatepage(page, offset); 1833 trace_ext3_invalidatepage(page, offset, length);
1834 1834
1835 /* 1835 /*
1836 * If it's a full truncate we just forget about the pending dirtying 1836 * If it's a full truncate we just forget about the pending dirtying
1837 */ 1837 */
1838 if (offset == 0) 1838 if (offset == 0 && length == PAGE_CACHE_SIZE)
1839 ClearPageChecked(page); 1839 ClearPageChecked(page);
1840 1840
1841 journal_invalidatepage(journal, page, offset); 1841 journal_invalidatepage(journal, page, offset, length);
1842} 1842}
1843 1843
1844static int ext3_releasepage(struct page *page, gfp_t wait) 1844static int ext3_releasepage(struct page *page, gfp_t wait)