original development tree for Linux kernel GTP module; now long in mainline.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
487 B

  1. /*
  2. * linux/fs/sysv/symlink.c
  3. *
  4. * Handling of System V filesystem fast symlinks extensions.
  5. * Aug 2001, Christoph Hellwig (hch@infradead.org)
  6. */
  7. #include "sysv.h"
  8. #include <linux/namei.h>
  9. static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd)
  10. {
  11. nd_set_link(nd, (char *)SYSV_I(dentry->d_inode)->i_data);
  12. return NULL;
  13. }
  14. const struct inode_operations sysv_fast_symlink_inode_operations = {
  15. .readlink = generic_readlink,
  16. .follow_link = sysv_follow_link,
  17. };