afs_prepare_write() should not mark a page up to date if it only partially
fills it in, in expectation of the caller filling in the rest prior to calling
commit_write(). commit_write(), however, should mark the page up to date.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
_leave(" = %d [prep]", ret);
return ret;
}
_leave(" = %d [prep]", ret);
return ret;
}
spin_unlock(&vnode->writeback_lock);
}
spin_unlock(&vnode->writeback_lock);
}
if (PageDirty(page))
_debug("dirtied");
if (PageDirty(page))
_debug("dirtied");