Whamcloud - gitweb
* Chain granted locks off the export.
[fs/lustre-release.git] / lustre / include / linux / obd_ext2.h
1 #ifndef _OBD_EXT2
2 #define _OBD_EXT2
3 /*
4  * Copyright (C) 2001  Cluster File Systems, Inc.
5  *
6  * This code is issued under the GNU General Public License.
7  * See the file COPYING in this distribution
8  */
9
10 #define OBD_EXT2_RUNIT           _IOWR('f', 61, long)
11
12 #ifndef OBD_EXT2_DEVICENAME
13 #define OBD_EXT2_DEVICENAME "obdext2"
14 #endif
15
16 /* development definitions */
17 extern struct obdfs_sb_info *obd_sbi;
18 extern struct file_operations *obd_fso;
19
20 /* ext2_obd.c */
21 extern struct obd_ops ext2_obd_ops;
22
23 #include <linux/fs.h>
24 #include <linux/ext2_fs.h>
25
26 /* super.c */
27 #ifdef EXT2_OBD_DEBUG
28 #  undef ext2_debug
29 #  define ext2_debug(format, a...) CDEBUG(D_EXT2, format, ## a)
30 #  define ext2_error ext2_warning
31 #  define ext2_panic ext2_warning
32 #  define ext2_warning(sb, func, format, a...) CDEBUG(D_WARNING, format, ## a)
33 #else
34 #  undef ext2_debug
35 #  define ext2_debug(format, a...) {}
36 #  define ext2_error(sb, func, format, a...) printk(KERN_ERR "%s: " format, func, ## a)
37 #  define ext2_panic(sb, func, format, a...) printk(KERN_CRIT "%s: " format, func, ## a)
38 #  define ext2_warning(sb, func, format, a...) printk(KERN_WARNING "%s: " format, func, ## a)
39 #endif
40
41 extern struct super_operations ext2_sops;
42 int obd_remount (struct super_block * sb, int * flags, char * data);
43 struct super_block * ext2_read_super (struct super_block * sb, void * data,
44                                       int silent);
45 /* punch.c */
46 void ext2_truncate (struct inode * inode);
47 int ext2_punch (struct inode * inode, loff_t start, size_t count);
48
49 #endif