18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* -*- mode: c; c-basic-offset: 8; -*- 38c2ecf20Sopenharmony_ci * vim: noexpandtab sw=8 ts=8 sts=0: 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * symlink.h 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Function prototypes 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Copyright (C) 2002, 2004 Oracle. All rights reserved. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef OCFS2_SYMLINK_H 138c2ecf20Sopenharmony_ci#define OCFS2_SYMLINK_H 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciextern const struct inode_operations ocfs2_symlink_inode_operations; 168c2ecf20Sopenharmony_ciextern const struct address_space_operations ocfs2_fast_symlink_aops; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* 198c2ecf20Sopenharmony_ci * Test whether an inode is a fast symlink. 208c2ecf20Sopenharmony_ci */ 218c2ecf20Sopenharmony_cistatic inline int ocfs2_inode_is_fast_symlink(struct inode *inode) 228c2ecf20Sopenharmony_ci{ 238c2ecf20Sopenharmony_ci return (S_ISLNK(inode->i_mode) && 248c2ecf20Sopenharmony_ci inode->i_blocks == 0); 258c2ecf20Sopenharmony_ci} 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /* OCFS2_SYMLINK_H */ 29