Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * symlink.h
0004  *
0005  * Function prototypes
0006  *
0007  * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
0008  */
0009 
0010 #ifndef OCFS2_SYMLINK_H
0011 #define OCFS2_SYMLINK_H
0012 
0013 extern const struct inode_operations ocfs2_symlink_inode_operations;
0014 extern const struct address_space_operations ocfs2_fast_symlink_aops;
0015 
0016 /*
0017  * Test whether an inode is a fast symlink.
0018  */
0019 static inline int ocfs2_inode_is_fast_symlink(struct inode *inode)
0020 {
0021     return (S_ISLNK(inode->i_mode) &&
0022         inode->i_blocks == 0);
0023 }
0024 
0025 
0026 #endif /* OCFS2_SYMLINK_H */