Home
last modified time | relevance | path

Searched refs:es (Results 1 – 25 of 28) sorted by relevance

12

/fs/ext4/
Dextents_status.c187 struct extent_status *es; in ext4_es_print_tree() local
188 es = rb_entry(node, struct extent_status, rb_node); in ext4_es_print_tree()
190 es->es_lblk, es->es_len, in ext4_es_print_tree()
191 ext4_es_pblock(es), ext4_es_status(es)); in ext4_es_print_tree()
200 static inline ext4_lblk_t ext4_es_end(struct extent_status *es) in ext4_es_end() argument
202 BUG_ON(es->es_lblk + es->es_len < es->es_lblk); in ext4_es_end()
203 return es->es_lblk + es->es_len - 1; in ext4_es_end()
214 struct extent_status *es = NULL; in __es_tree_search() local
217 es = rb_entry(node, struct extent_status, rb_node); in __es_tree_search()
218 if (lblk < es->es_lblk) in __es_tree_search()
[all …]
Dextents_status.h92 struct extent_status *es);
94 struct extent_status *es);
96 static inline int ext4_es_is_written(struct extent_status *es) in ext4_es_is_written() argument
98 return (es->es_pblk & ES_WRITTEN) != 0; in ext4_es_is_written()
101 static inline int ext4_es_is_unwritten(struct extent_status *es) in ext4_es_is_unwritten() argument
103 return (es->es_pblk & ES_UNWRITTEN) != 0; in ext4_es_is_unwritten()
106 static inline int ext4_es_is_delayed(struct extent_status *es) in ext4_es_is_delayed() argument
108 return (es->es_pblk & ES_DELAYED) != 0; in ext4_es_is_delayed()
111 static inline int ext4_es_is_hole(struct extent_status *es) in ext4_es_is_hole() argument
113 return (es->es_pblk & ES_HOLE) != 0; in ext4_es_is_hole()
[all …]
Dsuper.c69 struct ext4_super_block *es);
71 struct ext4_super_block *es);
119 struct ext4_super_block *es) in ext4_verify_csum_type() argument
125 return es->s_checksum_type == EXT4_CRC32C_CHKSUM; in ext4_verify_csum_type()
129 struct ext4_super_block *es) in ext4_superblock_csum() argument
135 csum = ext4_chksum(sbi, ~0, (char *)es, offset); in ext4_superblock_csum()
141 struct ext4_super_block *es) in ext4_superblock_csum_verify() argument
146 return es->s_checksum == ext4_superblock_csum(sb, es); in ext4_superblock_csum_verify()
151 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_superblock_csum_set() local
156 es->s_checksum = ext4_superblock_csum(sb, es); in ext4_superblock_csum_set()
[all …]
Dresize.c77 struct ext4_super_block *es = sbi->s_es; in verify_group_input() local
78 ext4_fsblk_t start = ext4_blocks_count(es); in verify_group_input()
468 struct ext4_super_block *es = sbi->s_es; in setup_new_flex_group_blocks() local
480 reserved_gdb = le16_to_cpu(es->s_reserved_gdt_blocks); in setup_new_flex_group_blocks()
745 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in add_new_gdb() local
861 le16_add_cpu(&es->s_reserved_gdt_blocks, -1); in add_new_gdb()
1156 struct ext4_super_block *es = sbi->s_es; in ext4_add_new_descs() local
1164 le16_to_cpu(es->s_reserved_gdt_blocks) : 0; in ext4_add_new_descs()
1314 struct ext4_super_block *es = sbi->s_es; in ext4_update_super() local
1333 reserved_blocks = ext4_r_blocks_count(es) * 100; in ext4_update_super()
[all …]
Dmmp.c129 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in kmmpd() local
134 int mmp_update_interval = le16_to_cpu(es->s_mmp_update_interval); in kmmpd()
140 mmp_block = le64_to_cpu(es->s_mmp_block); in kmmpd()
174 if (!(le32_to_cpu(es->s_feature_incompat) & in kmmpd()
272 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_multi_mount_protect() local
277 unsigned int mmp_check_interval = le16_to_cpu(es->s_mmp_update_interval); in ext4_multi_mount_protect()
281 if (mmp_block < le32_to_cpu(es->s_first_data_block) || in ext4_multi_mount_protect()
282 mmp_block >= ext4_blocks_count(es)) { in ext4_multi_mount_protect()
Dfile.c598 struct extent_status es; in ext4_seek_data() local
632 ext4_es_find_delayed_extent_range(inode, last, last, &es); in ext4_seek_data()
633 if (es.es_len != 0 && in_range(last, es.es_lblk, es.es_len)) { in ext4_seek_data()
671 struct extent_status es; in ext4_seek_hole() local
705 ext4_es_find_delayed_extent_range(inode, last, last, &es); in ext4_seek_hole()
706 if (es.es_len != 0 && in_range(last, es.es_lblk, es.es_len)) { in ext4_seek_hole()
707 last = es.es_lblk + es.es_len; in ext4_seek_hole()
Dballoc.c56 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset() local
59 blocknr = blocknr - le32_to_cpu(es->s_first_data_block); in ext4_get_group_no_and_offset()
666 struct ext4_super_block *es; in ext4_count_free_clusters() local
671 es = EXT4_SB(sb)->s_es; in ext4_count_free_clusters()
699 EXT4_NUM_B2C(EXT4_SB(sb), ext4_free_blocks_count(es)), in ext4_count_free_clusters()
742 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_bg_has_super() local
747 if (group == le32_to_cpu(es->s_backup_bgs[0]) || in ext4_bg_has_super()
748 group == le32_to_cpu(es->s_backup_bgs[1])) in ext4_bg_has_super()
Dext4.h2372 struct ext4_super_block *es,
2534 static inline ext4_fsblk_t ext4_blocks_count(struct ext4_super_block *es) in ext4_blocks_count() argument
2536 return ((ext4_fsblk_t)le32_to_cpu(es->s_blocks_count_hi) << 32) | in ext4_blocks_count()
2537 le32_to_cpu(es->s_blocks_count_lo); in ext4_blocks_count()
2540 static inline ext4_fsblk_t ext4_r_blocks_count(struct ext4_super_block *es) in ext4_r_blocks_count() argument
2542 return ((ext4_fsblk_t)le32_to_cpu(es->s_r_blocks_count_hi) << 32) | in ext4_r_blocks_count()
2543 le32_to_cpu(es->s_r_blocks_count_lo); in ext4_r_blocks_count()
2546 static inline ext4_fsblk_t ext4_free_blocks_count(struct ext4_super_block *es) in ext4_free_blocks_count() argument
2548 return ((ext4_fsblk_t)le32_to_cpu(es->s_free_blocks_count_hi) << 32) | in ext4_free_blocks_count()
2549 le32_to_cpu(es->s_free_blocks_count_lo); in ext4_free_blocks_count()
[all …]
Dextents.c406 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_valid_extent_entries() local
420 es->s_last_error_block = cpu_to_le64(pblock); in ext4_valid_extent_entries()
1269 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_ext_grow_indepth() local
1275 if (goal > le32_to_cpu(es->s_first_data_block)) { in ext4_ext_grow_indepth()
2156 struct extent_status es; in ext4_fill_fiemap_extents() local
2223 es.es_lblk = start; in ext4_fill_fiemap_extents()
2224 es.es_len = end - start; in ext4_fill_fiemap_extents()
2225 es.es_pblk = 0; in ext4_fill_fiemap_extents()
2227 es.es_lblk = le32_to_cpu(ex->ee_block); in ext4_fill_fiemap_extents()
2228 es.es_len = ext4_ext_get_actual_len(ex); in ext4_fill_fiemap_extents()
[all …]
Dext4_jbd2.c291 struct ext4_super_block *es; in __ext4_handle_dirty_metadata() local
293 es = EXT4_SB(inode->i_sb)->s_es; in __ext4_handle_dirty_metadata()
294 es->s_last_error_block = in __ext4_handle_dirty_metadata()
Dinode.c468 struct extent_status es; in ext4_map_blocks() local
493 if (ext4_es_lookup_extent(inode, map->m_lblk, &es)) { in ext4_map_blocks()
495 if (ext4_es_is_written(&es) || ext4_es_is_unwritten(&es)) { in ext4_map_blocks()
496 map->m_pblk = ext4_es_pblock(&es) + in ext4_map_blocks()
497 map->m_lblk - es.es_lblk; in ext4_map_blocks()
498 map->m_flags |= ext4_es_is_written(&es) ? in ext4_map_blocks()
500 retval = es.es_len - (map->m_lblk - es.es_lblk); in ext4_map_blocks()
504 } else if (ext4_es_is_delayed(&es) || ext4_es_is_hole(&es)) { in ext4_map_blocks()
640 ext4_es_lookup_extent(inode, map->m_lblk, &es)) { in ext4_map_blocks()
641 if (ext4_es_is_written(&es)) in ext4_map_blocks()
[all …]
Dblock_validity.c226 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_check_blockref() local
235 es->s_last_error_block = cpu_to_le64(blk); in ext4_check_blockref()
Dialloc.c239 struct ext4_super_block *es; in ext4_free_inode() local
280 es = EXT4_SB(sb)->s_es; in ext4_free_inode()
281 if (ino < EXT4_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext4_free_inode()
1185 struct ext4_super_block *es; in ext4_count_free_inodes() local
1189 es = EXT4_SB(sb)->s_es; in ext4_count_free_inodes()
1212 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count); in ext4_count_free_inodes()
Dmigrate.c619 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_ind_migrate() local
647 if (ext4_blocks_count(es) > EXT4_MAX_BLOCK_FILE_PHYS || in ext4_ind_migrate()
/fs/ext2/
Dsuper.c41 struct ext2_super_block *es, int wait);
54 struct ext2_super_block *es = sbi->s_es; in ext2_error() local
59 es->s_state |= cpu_to_le16(EXT2_ERROR_FS); in ext2_error()
61 ext2_sync_super(sb, es, 1); in ext2_error()
104 struct ext2_super_block *es = EXT2_SB(sb)->s_es; in ext2_update_dynamic_rev() local
106 if (le32_to_cpu(es->s_rev_level) > EXT2_GOOD_OLD_REV) in ext2_update_dynamic_rev()
114 es->s_first_ino = cpu_to_le32(EXT2_GOOD_OLD_FIRST_INO); in ext2_update_dynamic_rev()
115 es->s_inode_size = cpu_to_le16(EXT2_GOOD_OLD_INODE_SIZE); in ext2_update_dynamic_rev()
116 es->s_rev_level = cpu_to_le32(EXT2_DYNAMIC_REV); in ext2_update_dynamic_rev()
137 struct ext2_super_block *es = sbi->s_es; in ext2_put_super() local
[all …]
Dballoc.c488 struct ext2_super_block * es = sbi->s_es; in ext2_free_blocks() local
491 if (block < le32_to_cpu(es->s_first_data_block) || in ext2_free_blocks()
493 block + count > le32_to_cpu(es->s_blocks_count)) { in ext2_free_blocks()
504 block_group = (block - le32_to_cpu(es->s_first_data_block)) / in ext2_free_blocks()
506 bit = (block - le32_to_cpu(es->s_first_data_block)) % in ext2_free_blocks()
1225 struct ext2_super_block *es; in ext2_new_blocks() local
1247 es = EXT2_SB(sb)->s_es; in ext2_new_blocks()
1272 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks()
1273 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks()
1274 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks()
[all …]
Dialloc.c111 struct ext2_super_block * es; in ext2_free_inode() local
124 es = EXT2_SB(sb)->s_es; in ext2_free_inode()
128 ino > le32_to_cpu(es->s_inodes_count)) { in ext2_free_inode()
262 struct ext2_super_block *es = sbi->s_es; in find_group_orlov() local
315 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()
440 struct ext2_super_block *es; in ext2_new_inode() local
452 es = sbi->s_es; in ext2_new_inode()
519 if (ino < EXT2_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext2_new_inode()
622 struct ext2_super_block *es; in ext2_count_free_inodes() local
626 es = EXT2_SB(sb)->s_es; in ext2_count_free_inodes()
/fs/ext3/
Dsuper.c51 struct ext3_super_block *es,
54 struct ext3_super_block * es);
56 struct ext3_super_block * es);
159 struct ext3_super_block *es = EXT3_SB(sb)->s_es; in ext3_handle_error() local
162 es->s_state |= cpu_to_le16(EXT3_ERROR_FS); in ext3_handle_error()
179 ext3_commit_super(sb, es, 1); in ext3_handle_error()
319 struct ext3_super_block *es = EXT3_SB(sb)->s_es; in ext3_update_dynamic_rev() local
321 if (le32_to_cpu(es->s_rev_level) > EXT3_GOOD_OLD_REV) in ext3_update_dynamic_rev()
329 es->s_first_ino = cpu_to_le32(EXT3_GOOD_OLD_FIRST_INO); in ext3_update_dynamic_rev()
330 es->s_inode_size = cpu_to_le16(EXT3_GOOD_OLD_INODE_SIZE); in ext3_update_dynamic_rev()
[all …]
Dresize.c24 struct ext3_super_block *es = sbi->s_es; in verify_group_input() local
25 ext3_fsblk_t start = le32_to_cpu(es->s_blocks_count); in verify_group_input()
31 le16_to_cpu(es->s_reserved_gdt_blocks)) : 0; in verify_group_input()
51 else if ((start - le32_to_cpu(es->s_first_data_block)) % in verify_group_input()
432 struct ext3_super_block *es = EXT3_SB(sb)->s_es; in add_new_gdb() local
539 le16_add_cpu(&es->s_reserved_gdt_blocks, -1); in add_new_gdb()
786 struct ext3_super_block *es = sbi->s_es; in ext3_group_add() local
788 le16_to_cpu(es->s_reserved_gdt_blocks) : 0; in ext3_group_add()
806 if (le32_to_cpu(es->s_blocks_count) + input->blocks_count < in ext3_group_add()
807 le32_to_cpu(es->s_blocks_count)) { in ext3_group_add()
[all …]
Dballoc.c42 struct ext3_super_block *es = EXT3_SB(sb)->s_es; in ext3_get_group_no_and_offset() local
44 blocknr = blocknr - le32_to_cpu(es->s_first_data_block); in ext3_get_group_no_and_offset()
501 struct ext3_super_block * es; in ext3_free_blocks_sb() local
508 es = sbi->s_es; in ext3_free_blocks_sb()
509 if (block < le32_to_cpu(es->s_first_data_block) || in ext3_free_blocks_sb()
511 block + count > le32_to_cpu(es->s_blocks_count)) { in ext3_free_blocks_sb()
522 block_group = (block - le32_to_cpu(es->s_first_data_block)) / in ext3_free_blocks_sb()
524 bit = (block - le32_to_cpu(es->s_first_data_block)) % in ext3_free_blocks_sb()
1502 struct ext3_super_block *es; in ext3_new_blocks() local
1528 es = sbi->s_es; in ext3_new_blocks()
[all …]
Dialloc.c89 struct ext3_super_block * es; in ext3_free_inode() local
115 es = EXT3_SB(sb)->s_es; in ext3_free_inode()
116 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext3_free_inode()
356 struct ext3_super_block * es; in ext3_new_inode() local
375 es = sbi->s_es; in ext3_new_inode()
442 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext3_new_inode()
652 struct ext3_super_block *es; in ext3_count_free_inodes() local
656 es = EXT3_SB(sb)->s_es; in ext3_count_free_inodes()
677 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count); in ext3_count_free_inodes()
/fs/gfs2/
Dxattr.c865 struct gfs2_ea_header *ea, struct ea_set *es) in ea_set_simple_noalloc() argument
867 struct gfs2_ea_request *er = es->es_er; in ea_set_simple_noalloc()
877 if (es->ea_split) in ea_set_simple_noalloc()
882 if (es->es_el) in ea_set_simple_noalloc()
883 ea_set_remove_stuffed(ip, es->es_el); in ea_set_simple_noalloc()
900 struct ea_set *es = private; in ea_set_simple_alloc() local
901 struct gfs2_ea_header *ea = es->es_ea; in ea_set_simple_alloc()
904 gfs2_trans_add_meta(ip->i_gl, es->es_bh); in ea_set_simple_alloc()
906 if (es->ea_split) in ea_set_simple_alloc()
913 if (es->es_el) in ea_set_simple_alloc()
[all …]
/fs/ntfs/
Dmft.c1109 static const char *es = " Leaving inconsistent metadata. Unmount and run " variable
1371 "allocated cluster.%s", es); in ntfs_mft_bitmap_extend_allocation_nolock()
1503 "mft bitmap attribute.%s", es); in ntfs_mft_bitmap_extend_allocation_nolock()
1533 ntfs_error(vol->sb, "Failed to free allocated cluster.%s", es); in ntfs_mft_bitmap_extend_allocation_nolock()
1544 "array.%s", es); in ntfs_mft_bitmap_extend_allocation_nolock()
1549 "record.%s", es); in ntfs_mft_bitmap_extend_allocation_nolock()
1647 ntfs_error(vol->sb, "Failed to map mft record.%s", es); in ntfs_mft_bitmap_extend_initialized_nolock()
1653 ntfs_error(vol->sb, "Failed to get search context.%s", es); in ntfs_mft_bitmap_extend_initialized_nolock()
1660 "mft bitmap attribute.%s", es); in ntfs_mft_bitmap_extend_initialized_nolock()
1809 "from the mft data attribute.%s", es); in ntfs_mft_data_extend_allocation_nolock()
[all …]
Dsuper.c490 static const char *es = ". Cannot remount read-write."; in ntfs_remount() local
495 es); in ntfs_remount()
499 ntfs_error(sb, "Volume is dirty and read-only%s", es); in ntfs_remount()
504 "and is read-only%s", es); in ntfs_remount()
511 es); in ntfs_remount()
516 "information flags%s", es); in ntfs_remount()
526 "compatibility flag%s", es); in ntfs_remount()
534 es); in ntfs_remount()
540 es); in ntfs_remount()
546 "($UsnJrnl)%s", es); in ntfs_remount()
Dinode.c1877 static const char *es = " Not allowed. $MFT is corrupt. " in ntfs_read_inode_mount() local
1885 "compressed.%s", es); in ntfs_read_inode_mount()
1893 "sparse.%s", es); in ntfs_read_inode_mount()
2342 static const char *es = " Leaving inconsistent metadata. Unmount and run " variable
2729 IS_ERR(m) ? PTR_ERR(m) : err, es); in ntfs_truncate()
2740 (unsigned)le32_to_cpu(ni->type), mp_size, es); in ntfs_truncate()
2764 err, es); in ntfs_truncate()

12