blob: 14d0deb7afff2f57acfb65b7ec1d6de40f0aecc9 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Nathan Scott7b718762005-11-02 14:58:39 +11002 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
3 * 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_IOPS_H__
19#define __XFS_IOPS_H__
20
Arjan van de Venc5ef1c42007-02-12 00:55:40 -080021extern const struct inode_operations xfs_inode_operations;
22extern const struct inode_operations xfs_dir_inode_operations;
23extern const struct inode_operations xfs_symlink_inode_operations;
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Arjan van de Ven4b6f5d22006-03-28 01:56:42 -080025extern const struct file_operations xfs_file_operations;
26extern const struct file_operations xfs_dir_file_operations;
27extern const struct file_operations xfs_invis_file_operations;
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Nathan Scott4aeb6642005-11-02 11:43:58 +110030struct xfs_inode;
31extern void xfs_ichgtime(struct xfs_inode *, int);
32extern void xfs_ichgtime_fast(struct xfs_inode *, struct inode *, int);
33
Christoph Hellwig739bfb22007-08-29 10:58:01 +100034#define xfs_vtoi(vp) \
35 ((struct xfs_inode *)vn_to_inode(vp)->i_private)
36
37#define XFS_I(inode) \
38 ((struct xfs_inode *)(inode)->i_private)
39
Linus Torvalds1da177e2005-04-16 15:20:36 -070040#endif /* __XFS_IOPS_H__ */