efs_fs.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef __EFS_FS_H__
  9. #define __EFS_FS_H__
  10. #define EFS_VERSION "1.0a"
  11. static const char cprt[] = "EFS: "EFS_VERSION" - (c) 1999 Al Smith <Al.Smith@aeschi.ch.eu.org>";
  12. #include <asm/uaccess.h>
  13. /* 1 block is 512 bytes */
  14. #define EFS_BLOCKSIZE_BITS 9
  15. #define EFS_BLOCKSIZE (1 << EFS_BLOCKSIZE_BITS)
  16. #include <linux/fs.h>
  17. #include <linux/efs_fs_i.h>
  18. #include <linux/efs_fs_sb.h>
  19. #include <linux/efs_dir.h>
  20. static inline struct efs_inode_info *INODE_INFO(struct inode *inode)
  21. {
  22. return container_of(inode, struct efs_inode_info, vfs_inode);
  23. }
  24. static inline struct efs_sb_info *SUPER_INFO(struct super_block *sb)
  25. {
  26. return sb->s_fs_info;
  27. }
  28. struct statfs;
  29. extern const struct inode_operations efs_dir_inode_operations;
  30. extern const struct file_operations efs_dir_operations;
  31. extern const struct address_space_operations efs_symlink_aops;
  32. extern void efs_read_inode(struct inode *);
  33. extern efs_block_t efs_map_block(struct inode *, efs_block_t);
  34. extern int efs_get_block(struct inode *, sector_t, struct buffer_head *, int);
  35. extern struct dentry *efs_lookup(struct inode *, struct dentry *, struct nameidata *);
  36. extern struct dentry *efs_get_parent(struct dentry *);
  37. extern int efs_bmap(struct inode *, int);
  38. #endif /* __EFS_FS_H__ */