Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ufs.h File Reference

Go to the source code of this file.

Data Structures

struct  ufs_sb_info
 
struct  ufs_inode_info
 

Macros

#define UFS_MAX_GROUP_LOADED   8
 
#define UFS_CGNO_EMPTY   ((unsigned)-1)
 
#define UFS_MOUNT_ONERROR   0x0000000F
 
#define UFS_MOUNT_ONERROR_PANIC   0x00000001
 
#define UFS_MOUNT_ONERROR_LOCK   0x00000002
 
#define UFS_MOUNT_ONERROR_UMOUNT   0x00000004
 
#define UFS_MOUNT_ONERROR_REPAIR   0x00000008
 
#define UFS_MOUNT_UFSTYPE   0x0000FFF0
 
#define UFS_MOUNT_UFSTYPE_OLD   0x00000010
 
#define UFS_MOUNT_UFSTYPE_44BSD   0x00000020
 
#define UFS_MOUNT_UFSTYPE_SUN   0x00000040
 
#define UFS_MOUNT_UFSTYPE_NEXTSTEP   0x00000080
 
#define UFS_MOUNT_UFSTYPE_NEXTSTEP_CD   0x00000100
 
#define UFS_MOUNT_UFSTYPE_OPENSTEP   0x00000200
 
#define UFS_MOUNT_UFSTYPE_SUNx86   0x00000400
 
#define UFS_MOUNT_UFSTYPE_HP   0x00000800
 
#define UFS_MOUNT_UFSTYPE_UFS2   0x00001000
 
#define UFS_MOUNT_UFSTYPE_SUNOS   0x00002000
 
#define ufs_clear_opt(o, opt)   o &= ~UFS_MOUNT_##opt
 
#define ufs_set_opt(o, opt)   o |= UFS_MOUNT_##opt
 
#define ufs_test_opt(o, opt)   ((o) & UFS_MOUNT_##opt)
 
#define UFSD(f, a...)
 

Functions

void ufs_free_fragments (struct inode *, u64, unsigned)
 
void ufs_free_blocks (struct inode *, u64, unsigned)
 
u64 ufs_new_fragments (struct inode *, void *, u64, u64, unsigned, int *, struct page *)
 
struct ufs_cg_private_infoufs_load_cylinder (struct super_block *, unsigned)
 
void ufs_put_cylinder (struct super_block *, unsigned)
 
int ufs_add_link (struct dentry *, struct inode *)
 
ino_t ufs_inode_by_name (struct inode *, const struct qstr *)
 
int ufs_make_empty (struct inode *, struct inode *)
 
struct ufs_dir_entryufs_find_entry (struct inode *, const struct qstr *, struct page **)
 
int ufs_delete_entry (struct inode *, struct ufs_dir_entry *, struct page *)
 
int ufs_empty_dir (struct inode *)
 
struct ufs_dir_entryufs_dotdot (struct inode *, struct page **)
 
void ufs_set_link (struct inode *dir, struct ufs_dir_entry *de, struct page *page, struct inode *inode)
 
void ufs_free_inode (struct inode *inode)
 
struct inodeufs_new_inode (struct inode *, umode_t)
 
struct inodeufs_iget (struct super_block *, unsigned long)
 
int ufs_write_inode (struct inode *, struct writeback_control *)
 
int ufs_sync_inode (struct inode *)
 
void ufs_evict_inode (struct inode *)
 
int ufs_getfrag_block (struct inode *inode, sector_t fragment, struct buffer_head *bh_result, int create)
 
 __printf (3, 4) void ufs_warning(struct super_block *
 
const char const char const
char const char const char
const char void 
ufs_mark_sb_dirty (struct super_block *sb)
 
int ufs_truncate (struct inode *, loff_t)
 
int ufs_setattr (struct dentry *dentry, struct iattr *attr)
 
void lock_ufs (struct super_block *sb)
 
void unlock_ufs (struct super_block *sb)
 

Variables

struct inode_operations ufs_dir_inode_operations
 
struct inode_operations ufs_file_inode_operations
 
struct file_operations ufs_file_operations
 
struct address_space_operations ufs_aops
 
struct file_operations ufs_dir_operations
 
struct inode_operations ufs_fast_symlink_inode_operations
 
struct inode_operations ufs_symlink_inode_operations
 

Macro Definition Documentation

#define UFS_CGNO_EMPTY   ((unsigned)-1)

Definition at line 5 of file ufs.h.

#define ufs_clear_opt (   o,
  opt 
)    o &= ~UFS_MOUNT_##opt

Definition at line 66 of file ufs.h.

#define UFS_MAX_GROUP_LOADED   8

Definition at line 4 of file ufs.h.

#define UFS_MOUNT_ONERROR   0x0000000F

Definition at line 48 of file ufs.h.

#define UFS_MOUNT_ONERROR_LOCK   0x00000002

Definition at line 50 of file ufs.h.

#define UFS_MOUNT_ONERROR_PANIC   0x00000001

Definition at line 49 of file ufs.h.

#define UFS_MOUNT_ONERROR_REPAIR   0x00000008

Definition at line 52 of file ufs.h.

#define UFS_MOUNT_ONERROR_UMOUNT   0x00000004

Definition at line 51 of file ufs.h.

#define UFS_MOUNT_UFSTYPE   0x0000FFF0

Definition at line 54 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_44BSD   0x00000020

Definition at line 56 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_HP   0x00000800

Definition at line 62 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_NEXTSTEP   0x00000080

Definition at line 58 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_NEXTSTEP_CD   0x00000100

Definition at line 59 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_OLD   0x00000010

Definition at line 55 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_OPENSTEP   0x00000200

Definition at line 60 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_SUN   0x00000040

Definition at line 57 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_SUNOS   0x00002000

Definition at line 64 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_SUNx86   0x00000400

Definition at line 61 of file ufs.h.

#define UFS_MOUNT_UFSTYPE_UFS2   0x00001000

Definition at line 63 of file ufs.h.

#define ufs_set_opt (   o,
  opt 
)    o |= UFS_MOUNT_##opt

Definition at line 67 of file ufs.h.

#define ufs_test_opt (   o,
  opt 
)    ((o) & UFS_MOUNT_##opt)

Definition at line 68 of file ufs.h.

#define UFSD (   f,
  a... 
)

Definition at line 80 of file ufs.h.

Function Documentation

__printf ( ,
 
)
void lock_ufs ( struct super_block sb)

Definition at line 97 of file super.c.

int ufs_add_link ( struct dentry ,
struct inode  
)

Definition at line 312 of file dir.c.

int ufs_delete_entry ( struct inode ,
struct ufs_dir_entry ,
struct page  
)

Definition at line 515 of file dir.c.

struct ufs_dir_entry* ufs_dotdot ( struct inode ,
struct page **   
)
read

Definition at line 230 of file dir.c.

int ufs_empty_dir ( struct inode )

Definition at line 611 of file dir.c.

void ufs_evict_inode ( struct inode )

Definition at line 876 of file inode.c.

struct ufs_dir_entry* ufs_find_entry ( struct inode ,
const struct qstr ,
struct page **   
)
read

Definition at line 251 of file dir.c.

void ufs_free_blocks ( struct inode ,
u64  ,
unsigned   
)

Definition at line 134 of file balloc.c.

void ufs_free_fragments ( struct inode ,
u64  ,
unsigned   
)

Definition at line 37 of file balloc.c.

void ufs_free_inode ( struct inode inode)

Definition at line 56 of file ialloc.c.

int ufs_getfrag_block ( struct inode inode,
sector_t  fragment,
struct buffer_head *  bh_result,
int  create 
)

ufs_getfrag_block() - `get_block_t' function, interface between UFS and readpage, writepage and so on

Definition at line 415 of file inode.c.

struct inode* ufs_iget ( struct super_block ,
unsigned  long 
)
read

Definition at line 677 of file inode.c.

ino_t ufs_inode_by_name ( struct inode ,
const struct qstr  
)

Definition at line 73 of file dir.c.

struct ufs_cg_private_info* ufs_load_cylinder ( struct super_block ,
unsigned   
)
read

Definition at line 126 of file cylinder.c.

int ufs_make_empty ( struct inode ,
struct inode  
)

Definition at line 563 of file dir.c.

Definition at line 739 of file super.c.

u64 ufs_new_fragments ( struct inode ,
void ,
u64  ,
u64  ,
unsigned  ,
int ,
struct page  
)

Definition at line 345 of file balloc.c.

struct inode* ufs_new_inode ( struct inode ,
umode_t   
)
read

Definition at line 173 of file ialloc.c.

void ufs_put_cylinder ( struct super_block ,
unsigned   
)

Definition at line 82 of file cylinder.c.

void ufs_set_link ( struct inode dir,
struct ufs_dir_entry de,
struct page page,
struct inode inode 
)

Definition at line 89 of file dir.c.

int ufs_setattr ( struct dentry dentry,
struct iattr attr 
)

Definition at line 493 of file truncate.c.

int ufs_sync_inode ( struct inode )

Definition at line 871 of file inode.c.

int ufs_truncate ( struct inode ,
loff_t   
)

Definition at line 443 of file truncate.c.

int ufs_write_inode ( struct inode ,
struct writeback_control  
)

Definition at line 862 of file inode.c.

void unlock_ufs ( struct super_block sb)

Definition at line 107 of file super.c.

Variable Documentation

Definition at line 551 of file inode.c.

struct inode_operations ufs_dir_inode_operations

Definition at line 336 of file namei.c.

struct file_operations ufs_dir_operations

Definition at line 661 of file dir.c.

struct inode_operations ufs_fast_symlink_inode_operations

Definition at line 42 of file symlink.c.

struct inode_operations ufs_file_inode_operations

Definition at line 521 of file truncate.c.

struct file_operations ufs_file_operations

Definition at line 36 of file file.c.

struct inode_operations ufs_symlink_inode_operations

Definition at line 48 of file symlink.c.