/* * 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 <linux/types.h> #include <linux/kernel.h> #include <linux/time.h> #include <linux/fs.h> #include <linux/stat.h> #include <linux/errno.h> #include <linux/pagemap.h> #include <linux/coda.h> #include <linux/coda_psdev.h> #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, }; ue='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/net?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/dt-bindings/net?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/net?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/net?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/net'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='c3a2e8370534f810cac6050169db0ed3e0f94f0b'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>dt-bindings</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/net?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b'>net</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/net?h=nds-private-remove&id=c3a2e8370534f810cac6050169db0ed3e0f94f0b&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>