]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
b83bd138 | 2 | * Copyright (c) 2000-2006 Silicon Graphics, Inc. |
7b718769 | 3 | * All Rights Reserved. |
1da177e4 | 4 | * |
7b718769 NS |
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 | |
1da177e4 LT |
7 | * published by the Free Software Foundation. |
8 | * | |
7b718769 NS |
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. | |
1da177e4 | 13 | * |
7b718769 NS |
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 | |
1da177e4 LT |
17 | */ |
18 | #ifndef __XFS_VFS_H__ | |
19 | #define __XFS_VFS_H__ | |
20 | ||
21 | #include <linux/vfs.h> | |
22 | #include "xfs_fs.h" | |
23 | ||
0a74cd19 | 24 | struct inode; |
8285fb58 | 25 | |
1da177e4 | 26 | struct fid; |
1da177e4 | 27 | struct cred; |
1da177e4 LT |
28 | struct seq_file; |
29 | struct super_block; | |
739bfb2a | 30 | struct xfs_inode; |
745f6919 | 31 | struct xfs_mount; |
1da177e4 LT |
32 | struct xfs_mount_args; |
33 | ||
8285fb58 | 34 | typedef struct kstatfs bhv_statvfs_t; |
1da177e4 | 35 | |
7d04a335 NS |
36 | #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 | ||
b267ce99 CH |
43 | #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)) | |
1da177e4 | 45 | |
1da177e4 | 46 | #endif /* __XFS_VFS_H__ */ |