Commit 5d891b38 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] unneeded readpage in block_symlink

The new consistency checks in buffer.c are complaining about
block_symlink's ->readpage against an already uptodate
page.
parent 8f0e343b
......@@ -2110,8 +2110,12 @@ int block_symlink(struct inode *inode, const char *symname, int len)
* ->i_size will be enough for everything) and zero it out.
* OTOH it's obviously correct and should make the page up-to-date.
*/
err = mapping->a_ops->readpage(NULL, page);
wait_on_page_locked(page);
if (!PageUptodate(page)) {
err = mapping->a_ops->readpage(NULL, page);
wait_on_page_locked(page);
} else {
unlock_page(page);
}
page_cache_release(page);
if (err < 0)
goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment