xfs_vfs.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 2000-2006 Silicon Graphics, Inc.
  3. * All Rights Reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it would be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write the Free Software Foundation,
  16. * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #ifndef __XFS_VFS_H__
  19. #define __XFS_VFS_H__
  20. #include <linux/vfs.h>
  21. #include "xfs_fs.h"
  22. struct inode;
  23. struct fid;
  24. struct cred;
  25. struct seq_file;
  26. struct super_block;
  27. struct xfs_inode;
  28. struct xfs_mount;
  29. struct xfs_mount_args;
  30. typedef struct kstatfs bhv_statvfs_t;
  31. #define SHUTDOWN_META_IO_ERROR 0x0001 /* write attempt to metadata failed */
  32. #define SHUTDOWN_LOG_IO_ERROR 0x0002 /* write attempt to the log failed */
  33. #define SHUTDOWN_FORCE_UMOUNT 0x0004 /* shutdown from a forced unmount */
  34. #define SHUTDOWN_CORRUPT_INCORE 0x0008 /* corrupt in-memory data structures */
  35. #define SHUTDOWN_REMOTE_REQ 0x0010 /* shutdown came from remote cell */
  36. #define SHUTDOWN_DEVICE_REQ 0x0020 /* failed all paths to the device */
  37. #define xfs_test_for_freeze(mp) ((mp)->m_super->s_frozen)
  38. #define xfs_wait_for_freeze(mp,l) vfs_check_frozen((mp)->m_super, (l))
  39. #endif /* __XFS_VFS_H__ */