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

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

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php