mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
ca99fdd26b
commit
d8c8900ac1
4 changed files with 25 additions and 14 deletions
|
@ -1830,15 +1830,15 @@ static void ext3_invalidatepage(struct page *page, unsigned int offset,
|
|||
{
|
||||
journal_t *journal = EXT3_JOURNAL(page->mapping->host);
|
||||
|
||||
trace_ext3_invalidatepage(page, offset);
|
||||
trace_ext3_invalidatepage(page, offset, length);
|
||||
|
||||
/*
|
||||
* If it's a full truncate we just forget about the pending dirtying
|
||||
*/
|
||||
if (offset == 0)
|
||||
if (offset == 0 && length == PAGE_CACHE_SIZE)
|
||||
ClearPageChecked(page);
|
||||
|
||||
journal_invalidatepage(journal, page, offset);
|
||||
journal_invalidatepage(journal, page, offset, length);
|
||||
}
|
||||
|
||||
static int ext3_releasepage(struct page *page, gfp_t wait)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue