/*1* Copyright (C) 2005, 20062* Avishay Traeger ([email protected])3* Copyright (C) 2008, 20094* Boaz Harrosh <[email protected]>5*6* Copyrights for code taken from ext2:7* Copyright (C) 1992, 1993, 1994, 19958* Remy Card ([email protected])9* Laboratoire MASI - Institut Blaise Pascal10* Universite Pierre et Marie Curie (Paris VI)11* from12* linux/fs/minix/inode.c13* Copyright (C) 1991, 1992 Linus Torvalds14*15* This file is part of exofs.16*17* exofs is free software; you can redistribute it and/or modify18* it under the terms of the GNU General Public License as published by19* the Free Software Foundation. Since it is based on ext2, and the only20* valid version of GPL for the Linux kernel is version 2, the only valid21* version of GPL for exofs is version 2.22*23* exofs is distributed in the hope that it will be useful,24* but WITHOUT ANY WARRANTY; without even the implied warranty of25* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the26* GNU General Public License for more details.27*28* You should have received a copy of the GNU General Public License29* along with exofs; if not, write to the Free Software30* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA31*/3233#include <linux/namei.h>3435#include "exofs.h"3637static void *exofs_follow_link(struct dentry *dentry, struct nameidata *nd)38{39struct exofs_i_info *oi = exofs_i(dentry->d_inode);4041nd_set_link(nd, (char *)oi->i_data);42return NULL;43}4445const struct inode_operations exofs_symlink_inode_operations = {46.readlink = generic_readlink,47.follow_link = page_follow_link_light,48.put_link = page_put_link,49};5051const struct inode_operations exofs_fast_symlink_inode_operations = {52.readlink = generic_readlink,53.follow_link = exofs_follow_link,54};555657