/* * We are called with the page locked and we unlock it when done. */ static int smb_readpage(struct file *file, struct page *page) { int error; struct dentry *dentry = file->f_dentry; get_page(page); error = smb_readpage_sync(dentry, page); put_page(page); return error; }
/* * We are called with the page locked and we unlock it when done. */ static int smb_readpage(struct file *file, struct page *page) { int error; struct dentry *dentry = file->f_path.dentry; page_cache_get(page); error = smb_readpage_sync(dentry, page); page_cache_release(page); return error; }