~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/omfs/omfs.h

Version: ~ [ linux-5.2 ] ~ [ linux-5.1.16 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.57 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.132 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.184 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.184 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.69 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _OMFS_H
  2 #define _OMFS_H
  3 
  4 #include <linux/module.h>
  5 #include <linux/fs.h>
  6 
  7 #include "omfs_fs.h"
  8 
  9 /* In-memory structures */
 10 struct omfs_sb_info {
 11         u64 s_num_blocks;
 12         u64 s_bitmap_ino;
 13         u64 s_root_ino;
 14         u32 s_blocksize;
 15         u32 s_mirrors;
 16         u32 s_sys_blocksize;
 17         u32 s_clustersize;
 18         int s_block_shift;
 19         unsigned long **s_imap;
 20         int s_imap_size;
 21         struct mutex s_bitmap_lock;
 22         int s_uid;
 23         int s_gid;
 24         int s_dmask;
 25         int s_fmask;
 26 };
 27 
 28 /* convert a cluster number to a scaled block number */
 29 static inline sector_t clus_to_blk(struct omfs_sb_info *sbi, sector_t block)
 30 {
 31         return block << sbi->s_block_shift;
 32 }
 33 
 34 static inline struct omfs_sb_info *OMFS_SB(struct super_block *sb)
 35 {
 36         return sb->s_fs_info;
 37 }
 38 
 39 /* bitmap.c */
 40 extern unsigned long omfs_count_free(struct super_block *sb);
 41 extern int omfs_allocate_block(struct super_block *sb, u64 block);
 42 extern int omfs_allocate_range(struct super_block *sb, int min_request,
 43                         int max_request, u64 *return_block, int *return_size);
 44 extern int omfs_clear_range(struct super_block *sb, u64 block, int count);
 45 
 46 /* dir.c */
 47 extern const struct file_operations omfs_dir_operations;
 48 extern const struct inode_operations omfs_dir_inops;
 49 extern int omfs_make_empty(struct inode *inode, struct super_block *sb);
 50 extern int omfs_is_bad(struct omfs_sb_info *sbi, struct omfs_header *header,
 51                         u64 fsblock);
 52 
 53 /* file.c */
 54 extern const struct file_operations omfs_file_operations;
 55 extern const struct inode_operations omfs_file_inops;
 56 extern const struct address_space_operations omfs_aops;
 57 extern void omfs_make_empty_table(struct buffer_head *bh, int offset);
 58 extern int omfs_shrink_inode(struct inode *inode);
 59 
 60 /* inode.c */
 61 extern struct buffer_head *omfs_bread(struct super_block *sb, sector_t block);
 62 extern struct inode *omfs_iget(struct super_block *sb, ino_t inode);
 63 extern struct inode *omfs_new_inode(struct inode *dir, int mode);
 64 extern int omfs_reserve_block(struct super_block *sb, sector_t block);
 65 extern int omfs_find_empty_block(struct super_block *sb, int mode, ino_t *ino);
 66 extern int omfs_sync_inode(struct inode *inode);
 67 
 68 #endif
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp