Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  *  linux/fs/ext2/symlink.c
0004  *
0005  * Only fast symlinks left here - the rest is done by generic code. AV, 1999
0006  *
0007  * Copyright (C) 1992, 1993, 1994, 1995
0008  * Remy Card (card@masi.ibp.fr)
0009  * Laboratoire MASI - Institut Blaise Pascal
0010  * Universite Pierre et Marie Curie (Paris VI)
0011  *
0012  *  from
0013  *
0014  *  linux/fs/minix/symlink.c
0015  *
0016  *  Copyright (C) 1991, 1992  Linus Torvalds
0017  *
0018  *  ext2 symlink handling code
0019  */
0020 
0021 #include "ext2.h"
0022 #include "xattr.h"
0023 
0024 const struct inode_operations ext2_symlink_inode_operations = {
0025     .get_link   = page_get_link,
0026     .getattr    = ext2_getattr,
0027     .setattr    = ext2_setattr,
0028     .listxattr  = ext2_listxattr,
0029 };
0030  
0031 const struct inode_operations ext2_fast_symlink_inode_operations = {
0032     .get_link   = simple_get_link,
0033     .getattr    = ext2_getattr,
0034     .setattr    = ext2_setattr,
0035     .listxattr  = ext2_listxattr,
0036 };