Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * efs_fs.h |
| 3 | * |
| 4 | * Copyright (c) 1999 Al Smith |
| 5 | * |
| 6 | * Portions derived from work (c) 1995,1996 Christian Vogelgsang. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __EFS_FS_H__ |
| 10 | #define __EFS_FS_H__ |
| 11 | |
| 12 | #define EFS_VERSION "1.0a" |
| 13 | |
| 14 | static const char cprt[] = "EFS: "EFS_VERSION" - (c) 1999 Al Smith <Al.Smith@aeschi.ch.eu.org>"; |
| 15 | |
| 16 | #include <asm/uaccess.h> |
| 17 | |
| 18 | /* 1 block is 512 bytes */ |
| 19 | #define EFS_BLOCKSIZE_BITS 9 |
| 20 | #define EFS_BLOCKSIZE (1 << EFS_BLOCKSIZE_BITS) |
| 21 | |
| 22 | #include <linux/fs.h> |
| 23 | #include <linux/efs_fs_i.h> |
| 24 | #include <linux/efs_fs_sb.h> |
| 25 | #include <linux/efs_dir.h> |
| 26 | |
| 27 | static inline struct efs_inode_info *INODE_INFO(struct inode *inode) |
| 28 | { |
| 29 | return container_of(inode, struct efs_inode_info, vfs_inode); |
| 30 | } |
| 31 | |
| 32 | static inline struct efs_sb_info *SUPER_INFO(struct super_block *sb) |
| 33 | { |
| 34 | return sb->s_fs_info; |
| 35 | } |
| 36 | |
| 37 | struct statfs; |
Christoph Hellwig | 05da080 | 2007-10-21 16:42:09 -0700 | [diff] [blame] | 38 | struct fid; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
Arjan van de Ven | c5ef1c4 | 2007-02-12 00:55:40 -0800 | [diff] [blame] | 40 | extern const struct inode_operations efs_dir_inode_operations; |
Arjan van de Ven | 4b6f5d2 | 2006-03-28 01:56:42 -0800 | [diff] [blame] | 41 | extern const struct file_operations efs_dir_operations; |
Christoph Hellwig | f5e54d6 | 2006-06-28 04:26:44 -0700 | [diff] [blame] | 42 | extern const struct address_space_operations efs_symlink_aops; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | |
| 44 | extern void efs_read_inode(struct inode *); |
| 45 | extern efs_block_t efs_map_block(struct inode *, efs_block_t); |
| 46 | extern int efs_get_block(struct inode *, sector_t, struct buffer_head *, int); |
| 47 | |
| 48 | extern struct dentry *efs_lookup(struct inode *, struct dentry *, struct nameidata *); |
Christoph Hellwig | 05da080 | 2007-10-21 16:42:09 -0700 | [diff] [blame] | 49 | extern struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid, |
| 50 | int fh_len, int fh_type); |
| 51 | extern struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid, |
| 52 | int fh_len, int fh_type); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | extern struct dentry *efs_get_parent(struct dentry *); |
| 54 | extern int efs_bmap(struct inode *, int); |
| 55 | |
| 56 | #endif /* __EFS_FS_H__ */ |