symlink.c 487 B

1234567891011121314151617181920
  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. };