ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Macros | |
#define | MAX_LFS_FILESIZE 0x7fffffffffffffff |
#define | ext4_set_bit(n, p) set_bit((int)(n), (unsigned long *)(p)) |
Variables | |
PEXT2_GLOBAL | Ext2Global |
__u16 const | crc16_table [256] |
Definition at line 2612 of file generic.c.
Referenced by ext4_group_desc_csum().
ext3_fsblk_t descriptor_loc | ( | struct super_block * | sb, |
ext3_fsblk_t | logical_sb_block, | ||
unsigned int | nr | ||
) |
Definition at line 2736 of file generic.c.
Referenced by Ext2LoadGroup().
NTSTATUS Ext2AddEntry | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN struct inode * | Inode, | ||
IN PUNICODE_STRING | FileName, | ||
struct dentry ** | Dentry | ||
) |
Definition at line 1879 of file generic.c.
Definition at line 530 of file generic.c.
Referenced by Ext2CreateInode().
void Ext2DecodeInode | ( | struct inode * | dst, |
struct ext3_inode * | src | ||
) |
Definition at line 452 of file generic.c.
Referenced by Ext2LoadInode().
Definition at line 266 of file generic.c.
Referenced by Ext2DestroyVcb(), Ext2FlushVcb(), and Ext2PurgeVolume().
Definition at line 132 of file generic.c.
Referenced by Ext2DropBH(), and Ext2PutGroup().
void Ext2EncodeInode | ( | struct ext3_inode * | dst, |
struct inode * | src | ||
) |
Definition at line 479 of file generic.c.
Referenced by Ext2LoadInodeXattr(), and Ext2SaveInode().
VOID Ext2FlushRange | ( | IN PEXT2_VCB | Vcb, |
LARGE_INTEGER | s, | ||
LARGE_INTEGER | e | ||
) |
Definition at line 303 of file generic.c.
Referenced by Ext2FlushVcb().
Definition at line 323 of file generic.c.
Referenced by Ext2FloppyFlush(), and Ext2FlushVolume().
NTSTATUS Ext2FreeBlock | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | Block, | ||
IN ULONG | Number | ||
) |
Definition at line 1217 of file generic.c.
Referenced by Ext2ExpandLast(), Ext2TruncateBlock(), Ext2TruncateIndirectFast(), and ext4_free_blocks().
NTSTATUS Ext2FreeInode | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | Inode, | ||
IN ULONG | Type | ||
) |
Definition at line 1766 of file generic.c.
Referenced by Ext2CreateInode(), and Ext2DeleteFile().
Definition at line 418 of file generic.c.
Referenced by Ext2ClearInode(), Ext2LoadInode(), Ext2LoadInodeXattr(), Ext2SaveInode(), and Ext2SaveInodeXattr().
Definition at line 659 of file generic.c.
BOOLEAN Ext2LoadBuffer | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN LONGLONG | offset, | ||
IN ULONG | size, | ||
IN PVOID | buf | ||
) |
Definition at line 733 of file generic.c.
Referenced by Ext2LoadInode(), and Ext2SaveInode().
Definition at line 207 of file generic.c.
Referenced by Ext2InitializeVcb(), and ext4_get_group_desc().
Definition at line 170 of file generic.c.
Referenced by Ext2LoadGroup(), and ext4_get_group_desc().
Definition at line 508 of file generic.c.
Referenced by Ext2InitializeVcb(), Ext2LoadInternalJournal(), Ext2LookupFile(), Ext2ProcessEntry(), and Ext2RefreshSuper().
Definition at line 590 of file generic.c.
Referenced by ext4_fs_get_xattr_ref().
Definition at line 29 of file generic.c.
Referenced by Ext2MountVolume(), and Ext2VerifyVolume().
NTSTATUS Ext2NewBlock | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | GroupHint, | ||
IN ULONG | BlockHint, | ||
OUT PULONG | Block, | ||
IN OUT PULONG | Number | ||
) |
Definition at line 1008 of file generic.c.
Referenced by Ext2ExpandLast(), and ext4_new_meta_blocks().
NTSTATUS Ext2NewInode | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | GroupHint, | ||
IN ULONG | Type, | ||
OUT PULONG | Inode | ||
) |
Definition at line 1366 of file generic.c.
Referenced by Ext2CreateInode().
Definition at line 150 of file generic.c.
Referenced by Ext2InitializeVcb(), and Ext2LoadGroup().
BOOLEAN Ext2RefreshGroup | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 409 of file generic.c.
Referenced by Ext2RecoverJournal().
BOOLEAN Ext2RefreshSuper | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 92 of file generic.c.
Referenced by Ext2RecoverJournal().
NTSTATUS Ext2RemoveEntry | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN PEXT2_MCB | Mcb | ||
) |
Definition at line 2021 of file generic.c.
Referenced by Ext2DeleteFile(), and Ext2SetRenameInfo().
BOOLEAN Ext2SaveBlock | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | Index, | ||
IN PVOID | Buf | ||
) |
Definition at line 698 of file generic.c.
Referenced by Ext2ExpandBlock(), and Ext2ExpandLast().
BOOLEAN Ext2SaveBuffer | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN LONGLONG | offset, | ||
IN ULONG | size, | ||
IN PVOID | buf | ||
) |
Definition at line 928 of file generic.c.
Referenced by Ext2SaveInode(), Ext2SaveInodeXattr(), Ext2SaveSuper(), and Ext2WriteInode().
Definition at line 386 of file generic.c.
Referenced by Ext2FreeBlock(), Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), and Ext2UpdateGroupDirStat().
BOOLEAN Ext2SaveInode | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN struct inode * | Inode | ||
) |
Definition at line 552 of file generic.c.
Referenced by Ext2Cleanup(), Ext2CreateInode(), Ext2DeleteFile(), Ext2DoExtentExpand(), Ext2ExpandExtent(), Ext2ExpandIndirect(), Ext2FlushFile(), Ext2GetBlock(), Ext2MapExtent(), Ext2MapIndirect(), Ext2SetFileInformation(), Ext2SetReparsePoint(), Ext2SupersedeOrOverWriteFile(), Ext2TruncateExtent(), Ext2TruncateIndirect(), Ext2TruncateSymlink(), Ext2WriteFile(), Ext2WriteSymlink(), ext3_append(), ext3_mark_inode_dirty(), and ext4_fs_put_xattr_ref().
BOOLEAN Ext2SaveInodeXattr | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN struct inode * | Inode, | ||
IN PEXT2_INODE | InodeXattr | ||
) |
Definition at line 621 of file generic.c.
Referenced by ext4_fs_put_xattr_ref().
BOOLEAN Ext2SaveSuper | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 67 of file generic.c.
Referenced by Ext2RecoverJournal(), Ext2SetFileInformation(), Ext2SetVolumeInformation(), Ext2ShutDown(), Ext2UpdateVcbStat(), Ext2WriteFile(), and ext3_inode_blocks_set().
NTSTATUS Ext2SetFileType | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN PEXT2_MCB | Mcb, | ||
IN umode_t | mode | ||
) |
Definition at line 1951 of file generic.c.
Referenced by Ext2SetReparsePoint().
NTSTATUS Ext2SetParentEntry | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN ULONG | OldParent, | ||
IN ULONG | NewParent | ||
) |
Definition at line 2098 of file generic.c.
Referenced by Ext2SetRenameInfo().
NTSTATUS Ext2UpdateGroupDirStat | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | group | ||
) |
Definition at line 1728 of file generic.c.
Referenced by Ext2SetReparsePoint().
VOID Ext2UpdateVcbStat | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 997 of file generic.c.
Referenced by Ext2FreeBlock(), Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), and Ext2UpdateGroupDirStat().
BOOLEAN Ext2ZeroBuffer | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN LONGLONG | offset, | ||
IN ULONG | size | ||
) |
Definition at line 795 of file generic.c.
Referenced by Ext2ClearInode().
int ext3_bg_has_super | ( | struct super_block * | sb, |
ext3_group_t | group | ||
) |
ext4_bg_has_super - number of blocks used by the superblock in group @sb: superblock for filesystem @group: group number to check
Return the number of blocks used by the superblock (primary or backup) in this group. Currently this will be only 0 or 1.
Definition at line 2686 of file generic.c.
Referenced by descriptor_loc(), ext4_bg_num_gdb_nometa(), and ext4_init_block_bitmap().
int ext3_check_dir_entry | ( | const char * | function, |
struct inode * | dir, | ||
struct ext3_dir_entry_2 * | de, | ||
struct buffer_head * | bh, | ||
unsigned long | offset | ||
) |
Definition at line 2209 of file generic.c.
Referenced by add_dirent_to_buf(), ext3_delete_entry(), ext3_is_dir_empty(), and search_dirblock().
|
static |
Definition at line 2668 of file generic.c.
Referenced by ext3_bg_has_super().
blkcnt_t ext3_inode_blocks | ( | struct ext3_inode * | raw_inode, |
struct inode * | inode | ||
) |
Definition at line 2395 of file generic.c.
Referenced by Ext2DecodeInode().
int ext3_inode_blocks_set | ( | struct ext3_inode * | raw_inode, |
struct inode * | inode | ||
) |
Definition at line 2418 of file generic.c.
Referenced by Ext2EncodeInode().
Definition at line 2337 of file generic.c.
Referenced by Ext2InitializeVcb().
Definition at line 2301 of file generic.c.
Referenced by Ext2InitializeVcb().
struct ext3_dir_entry_2 * ext3_next_entry | ( | struct ext3_dir_entry_2 * | p | ) |
Definition at line 2244 of file generic.c.
Referenced by ext3_delete_entry(), and ext3_is_dir_empty().
unsigned long ext4_bg_num_gdb | ( | struct super_block * | sb, |
ext4_group_t | group | ||
) |
ext4_bg_num_gdb - number of blocks used by the group table in group @sb: superblock for filesystem @group: group number to check
Return the number of blocks used by the group descriptor table (primary or backup) in this group. In the future there may be a different number of descriptor blocks in each group.
Definition at line 2722 of file generic.c.
Referenced by ext4_init_block_bitmap().
|
static |
Definition at line 2695 of file generic.c.
Referenced by ext4_bg_num_gdb().
|
static |
Definition at line 2707 of file generic.c.
Referenced by ext4_bg_num_gdb().
ext4_fsblk_t ext4_block_bitmap | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2459 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2CheckSetBlock(), Ext2FreeBlock(), Ext2NewBlock(), Ext2NewInode(), ext4_check_descriptors(), ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
void ext4_block_bitmap_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
ext4_fsblk_t | blk | ||
) |
|
static |
Definition at line 2832 of file generic.c.
Referenced by ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
int ext4_check_descriptors | ( | struct super_block * | sb | ) |
Definition at line 3091 of file generic.c.
Referenced by Ext2LoadGroup().
unsigned long ext4_count_dirs | ( | struct super_block * | sb | ) |
ext4_fsblk_t ext4_count_free_blocks | ( | struct super_block * | sb | ) |
ext4_count_free_blocks() – count filesystem free blocks @sb: superblock
Adds up the number of free blocks from each block group.
Definition at line 3033 of file generic.c.
Referenced by Ext2UpdateVcbStat(), and ext4_check_descriptors().
unsigned long ext4_count_free_inodes | ( | struct super_block * | sb | ) |
Definition at line 3054 of file generic.c.
Referenced by Ext2UpdateVcbStat(), and ext4_check_descriptors().
__u32 ext4_free_blks_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2483 of file generic.c.
Referenced by Ext2NewBlock(), and ext4_count_free_blocks().
void ext4_free_blks_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2539 of file generic.c.
Referenced by Ext2FreeBlock(), Ext2NewBlock(), Ext2NewInode(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
__u32 ext4_free_inodes_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2491 of file generic.c.
Referenced by Ext2NewInode(), and ext4_count_free_inodes().
void ext4_free_inodes_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2547 of file generic.c.
Referenced by Ext2FreeInode(), Ext2NewInode(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
struct ext4_group_desc * ext4_get_group_desc | ( | struct super_block * | sb, |
ext4_group_t | block_group, | ||
struct buffer_head ** | bh | ||
) |
ext4_get_group_desc() – load group descriptor from disk @sb: super block @block_group: given block group @bh: pointer to the buffer head to store the block group descriptor
Definition at line 2976 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2CheckSetBlock(), Ext2FreeBlock(), Ext2FreeInode(), Ext2GetInodeLba(), Ext2NewBlock(), Ext2NewInode(), Ext2SaveGroup(), Ext2UpdateGroupDirStat(), ext4_check_descriptors(), ext4_count_dirs(), ext4_count_free_blocks(), ext4_count_free_inodes(), and ext4_group_used_meta_blocks().
void ext4_get_group_no_and_offset | ( | struct super_block * | sb, |
ext4_fsblk_t | blocknr, | ||
ext4_group_t * | blockgrpp, | ||
ext4_grpblk_t * | offsetp | ||
) |
Definition at line 2817 of file generic.c.
Referenced by ext4_block_in_group().
__le16 ext4_group_desc_csum | ( | struct ext3_sb_info * | sbi, |
__u32 | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2619 of file generic.c.
Referenced by Ext2NewBlock(), Ext2NewInode(), Ext2SaveGroup(), ext4_check_descriptors(), and ext4_group_desc_csum_verify().
int ext4_group_desc_csum_verify | ( | struct ext3_sb_info * | sbi, |
__u32 | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2648 of file generic.c.
Referenced by ext4_check_descriptors(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
|
static |
Definition at line 2842 of file generic.c.
Referenced by ext4_init_block_bitmap().
unsigned ext4_init_block_bitmap | ( | struct super_block * | sb, |
struct buffer_head * | bh, | ||
ext4_group_t | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2877 of file generic.c.
Referenced by Ext2NewBlock(), and Ext2NewInode().
unsigned ext4_init_inode_bitmap | ( | struct super_block * | sb, |
struct buffer_head * | bh, | ||
ext4_group_t | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2786 of file generic.c.
Referenced by Ext2NewInode().
ext4_fsblk_t ext4_inode_bitmap | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2467 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), ext4_check_descriptors(), ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
void ext4_inode_bitmap_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
ext4_fsblk_t | blk | ||
) |
ext4_fsblk_t ext4_inode_table | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2475 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2GetInodeLba(), Ext2NewBlock(), ext4_check_descriptors(), ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
void ext4_inode_table_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
ext4_fsblk_t | blk | ||
) |
__u32 ext4_itable_unused_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
void ext4_itable_unused_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2563 of file generic.c.
Referenced by Ext2NewInode(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
Definition at line 2261 of file generic.c.
__u32 ext4_used_dirs_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2499 of file generic.c.
Referenced by Ext2FreeInode(), Ext2NewInode(), Ext2UpdateGroupDirStat(), and ext4_count_dirs().
void ext4_used_dirs_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2555 of file generic.c.
Referenced by Ext2FreeInode(), Ext2NewInode(), and Ext2UpdateGroupDirStat().
Definition at line 2771 of file generic.c.
Referenced by ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
|
inlinestatic |
CRC table for the CRC-16. The poly is 0x8005 (x16 + x15 + x2 + 1)
Definition at line 2572 of file generic.c.
Referenced by crc16_byte().
|
extern |