Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93976
b: refs/heads/master
c: 0dd1334
h: refs/heads/master
v: v3
  • Loading branch information
Hisashi Hifumi authored and Linus Torvalds committed Apr 28, 2008
1 parent 883c92e commit 8aa1eef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddc81ed2c5d47a078a3b02c5c3a4345bc2bc3c9b
refs/heads/master: 0dd1334faf7e075bfdb6f5284eed65210b296fc1
11 changes: 8 additions & 3 deletions trunk/mm/truncate.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
pgoff_t next;
int i;
int ret = 0;
int ret2 = 0;
int did_range_unmap = 0;
int wrapped = 0;

Expand Down Expand Up @@ -438,9 +439,13 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
}
}
BUG_ON(page_mapped(page));
ret = do_launder_page(mapping, page);
if (ret == 0 && !invalidate_complete_page2(mapping, page))
ret = -EIO;
ret2 = do_launder_page(mapping, page);
if (ret2 == 0) {
if (!invalidate_complete_page2(mapping, page))
ret2 = -EIO;
}
if (ret2 < 0)
ret = ret2;
unlock_page(page);
}
pagevec_release(&pvec);
Expand Down

0 comments on commit 8aa1eef

Please sign in to comment.