diff options
-rw-r--r-- | include/linux/page-flags.h | 2 | ||||
-rw-r--r-- | mm/filemap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 5f38c460367e..4805fdec8d6e 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -198,7 +198,7 @@ static inline int __TestClearPage##uname(struct page *page) { return 0; } | |||
198 | struct page; /* forward declaration */ | 198 | struct page; /* forward declaration */ |
199 | 199 | ||
200 | TESTPAGEFLAG(Locked, locked) TESTSETFLAG(Locked, locked) | 200 | TESTPAGEFLAG(Locked, locked) TESTSETFLAG(Locked, locked) |
201 | PAGEFLAG(Error, error) | 201 | PAGEFLAG(Error, error) TESTCLEARFLAG(Error, error) |
202 | PAGEFLAG(Referenced, referenced) TESTCLEARFLAG(Referenced, referenced) | 202 | PAGEFLAG(Referenced, referenced) TESTCLEARFLAG(Referenced, referenced) |
203 | PAGEFLAG(Dirty, dirty) TESTSCFLAG(Dirty, dirty) __CLEARPAGEFLAG(Dirty, dirty) | 203 | PAGEFLAG(Dirty, dirty) TESTSCFLAG(Dirty, dirty) __CLEARPAGEFLAG(Dirty, dirty) |
204 | PAGEFLAG(LRU, lru) __CLEARPAGEFLAG(LRU, lru) | 204 | PAGEFLAG(LRU, lru) __CLEARPAGEFLAG(LRU, lru) |
diff --git a/mm/filemap.c b/mm/filemap.c index 1a3dd5914726..b4ad8e36c81a 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -298,7 +298,7 @@ int filemap_fdatawait_range(struct address_space *mapping, loff_t start_byte, | |||
298 | continue; | 298 | continue; |
299 | 299 | ||
300 | wait_on_page_writeback(page); | 300 | wait_on_page_writeback(page); |
301 | if (PageError(page)) | 301 | if (TestClearPageError(page)) |
302 | ret = -EIO; | 302 | ret = -EIO; |
303 | } | 303 | } |
304 | pagevec_release(&pvec); | 304 | pagevec_release(&pvec); |