/* * Symlink inode operations for Coda filesystem * Original version: (C) 1996 P. Braam and M. Callahan * Rewritten for Linux 2.1. (C) 1997 Carnegie Mellon University * * Carnegie Mellon encourages users to contribute improvements to * the Coda project. Contact Peter Braam (coda@cs.cmu.edu). */ #include #include #include #include #include #include #include #include #include #include "coda_linux.h" static int coda_symlink_filler(struct file *file, struct page *page) { struct inode *inode = page->mapping->host; int error; struct coda_inode_info *cii; unsigned int len = PAGE_SIZE; char *p = page_address(page); cii = ITOC(inode); error = venus_readlink(inode->i_sb, &cii->c_fid, p, &len); if (error) goto fail; SetPageUptodate(page); unlock_page(page); return 0; fail: SetPageError(page); unlock_page(page); return error; } const struct address_space_operations coda_symlink_aops = { .readpage = coda_symlink_filler, }; master'>master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
nge='this.form.submit();'>
AgeCommit message (Expand)AuthorFilesLines
authorJike Song <jike.song@intel.com>2017-01-06 15:16:20 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-01-09 11:11:52 +0800
commit5753394b64a07dd502cb288a5fd52e71fb01fc5d (patch)
tree4fbdfa530800684f2db81d96798b9e1f84235d9f
parent03551e971f6e52c8dedd5741bf48631e65675759 (diff)
drm/i915/gvt/kvmgt: return meaningful error for vgpu creating failure
The vgpu_create() routine we called returns meaningful errors to indicate failures, so we'd better to pass it to our caller, the mdev framework, whereby the sysfs is able to tell userspace what happened. Signed-off-by: Jike Song <jike.song@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>