blob: 0ab60bc2e76140644d2bdb78c32a5f5d54b569bb [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Nathan Scottb83bd132006-06-09 16:48:30 +10002 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
Nathan Scott7b718762005-11-02 14:58:39 +11003 * All Rights Reserved.
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 *
Nathan Scott7b718762005-11-02 14:58:39 +11005 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 * published by the Free Software Foundation.
8 *
Nathan Scott7b718762005-11-02 14:58:39 +11009 * 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.
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 *
Nathan Scott7b718762005-11-02 14:58:39 +110014 * 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
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 */
18#ifndef __XFS_VFS_H__
19#define __XFS_VFS_H__
20
21#include <linux/vfs.h>
22#include "xfs_fs.h"
23
Christoph Hellwig0a74cd12007-08-29 11:53:12 +100024struct inode;
Nathan Scott8285fb52006-06-09 17:07:12 +100025
Linus Torvalds1da177e2005-04-16 15:20:36 -070026struct fid;
Linus Torvalds1da177e2005-04-16 15:20:36 -070027struct cred;
Linus Torvalds1da177e2005-04-16 15:20:36 -070028struct seq_file;
29struct super_block;
Christoph Hellwig739bfb22007-08-29 10:58:01 +100030struct xfs_inode;
Christoph Hellwig745f6912007-08-30 17:20:39 +100031struct xfs_mount;
Linus Torvalds1da177e2005-04-16 15:20:36 -070032struct xfs_mount_args;
33
Nathan Scott8285fb52006-06-09 17:07:12 +100034typedef struct kstatfs bhv_statvfs_t;
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
Nathan Scott7d04a332006-06-09 14:58:38 +100036#define SHUTDOWN_META_IO_ERROR 0x0001 /* write attempt to metadata failed */
37#define SHUTDOWN_LOG_IO_ERROR 0x0002 /* write attempt to the log failed */
38#define SHUTDOWN_FORCE_UMOUNT 0x0004 /* shutdown from a forced unmount */
39#define SHUTDOWN_CORRUPT_INCORE 0x0008 /* corrupt in-memory data structures */
40#define SHUTDOWN_REMOTE_REQ 0x0010 /* shutdown came from remote cell */
41#define SHUTDOWN_DEVICE_REQ 0x0020 /* failed all paths to the device */
42
Christoph Hellwigb267ce92007-08-30 17:21:30 +100043#define xfs_test_for_freeze(mp) ((mp)->m_super->s_frozen)
44#define xfs_wait_for_freeze(mp,l) vfs_check_frozen((mp)->m_super, (l))
Linus Torvalds1da177e2005-04-16 15:20:36 -070045
Linus Torvalds1da177e2005-04-16 15:20:36 -070046#endif /* __XFS_VFS_H__ */