blob: 167094d1e5aa0060e12ce761b61ce6c3f3fb769d [file] [log] [blame]
Thomas Gleixner328970d2019-05-24 12:04:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Mark Fashehccd979b2005-12-15 14:31:24 -08002/* -*- mode: c; c-basic-offset: 8; -*-
3 * vim: noexpandtab sw=8 ts=8 sts=0:
4 *
5 * symlink.h
6 *
7 * Function prototypes
8 *
9 * Copyright (C) 2002, 2004 Oracle. All rights reserved.
Mark Fashehccd979b2005-12-15 14:31:24 -080010 */
11
12#ifndef OCFS2_SYMLINK_H
13#define OCFS2_SYMLINK_H
14
Arjan van de Ven92e1d5b2007-02-12 00:55:39 -080015extern const struct inode_operations ocfs2_symlink_inode_operations;
Al Viroea022dfb2012-05-03 10:14:29 -040016extern const struct address_space_operations ocfs2_fast_symlink_aops;
Mark Fashehccd979b2005-12-15 14:31:24 -080017
18/*
19 * Test whether an inode is a fast symlink.
20 */
21static inline int ocfs2_inode_is_fast_symlink(struct inode *inode)
22{
23 return (S_ISLNK(inode->i_mode) &&
24 inode->i_blocks == 0);
25}
26
27
28#endif /* OCFS2_SYMLINK_H */