{
int err;
+ if ((err = unionfs_file_revalidate(file, 0)))
+ goto out_err;
+
err = unionfs_do_readpage(file, page);
/*
* it
*/
+out_err:
unlock_page(page);
return err;
int unionfs_prepare_write(struct file *file, struct page *page, unsigned from,
unsigned to)
{
- return 0;
+ return unionfs_file_revalidate(file, 1);
}
int unionfs_commit_write(struct file *file, struct page *page, unsigned from,
BUG_ON(file == NULL);
+ if ((err = unionfs_file_revalidate(file, 1)))
+ goto out;
+
inode = page->mapping->host; /* CPW: Moved below print_entry_location */
lower_inode = unionfs_lower_inode(inode);