symlink.h 634 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /* -*- 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.
  10. */
  11. #ifndef OCFS2_SYMLINK_H
  12. #define OCFS2_SYMLINK_H
  13. extern const struct inode_operations ocfs2_symlink_inode_operations;
  14. extern const struct address_space_operations ocfs2_fast_symlink_aops;
  15. /*
  16. * Test whether an inode is a fast symlink.
  17. */
  18. static inline int ocfs2_inode_is_fast_symlink(struct inode *inode)
  19. {
  20. return (S_ISLNK(inode->i_mode) &&
  21. inode->i_blocks == 0);
  22. }
  23. #endif /* OCFS2_SYMLINK_H */