Home
last modified time | relevance | path

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

12

/fs/ext4/
Dextents_status.c184 struct extent_status *es; in ext4_es_print_tree() local
185 es = rb_entry(node, struct extent_status, rb_node); in ext4_es_print_tree()
187 es->es_lblk, es->es_len, in ext4_es_print_tree()
188 ext4_es_pblock(es), ext4_es_status(es)); in ext4_es_print_tree()
197 static inline ext4_lblk_t ext4_es_end(struct extent_status *es) in ext4_es_end() argument
199 BUG_ON(es->es_lblk + es->es_len < es->es_lblk); in ext4_es_end()
200 return es->es_lblk + es->es_len - 1; in ext4_es_end()
211 struct extent_status *es = NULL; in __es_tree_search() local
214 es = rb_entry(node, struct extent_status, rb_node); in __es_tree_search()
215 if (lblk < es->es_lblk) in __es_tree_search()
[all …]
Dextents_status.h94 struct extent_status *es);
96 struct extent_status *es);
98 static inline unsigned int ext4_es_status(struct extent_status *es) in ext4_es_status() argument
100 return es->es_pblk >> ES_SHIFT; in ext4_es_status()
103 static inline unsigned int ext4_es_type(struct extent_status *es) in ext4_es_type() argument
105 return (es->es_pblk & ES_TYPE_MASK) >> ES_SHIFT; in ext4_es_type()
108 static inline int ext4_es_is_written(struct extent_status *es) in ext4_es_is_written() argument
110 return (ext4_es_type(es) & EXTENT_STATUS_WRITTEN) != 0; in ext4_es_is_written()
113 static inline int ext4_es_is_unwritten(struct extent_status *es) in ext4_es_is_unwritten() argument
115 return (ext4_es_type(es) & EXTENT_STATUS_UNWRITTEN) != 0; in ext4_es_is_unwritten()
[all …]
Dsuper.c65 struct ext4_super_block *es);
67 struct ext4_super_block *es);
142 struct ext4_super_block *es) in ext4_verify_csum_type() argument
147 return es->s_checksum_type == EXT4_CRC32C_CHKSUM; in ext4_verify_csum_type()
151 struct ext4_super_block *es) in ext4_superblock_csum() argument
157 csum = ext4_chksum(sbi, ~0, (char *)es, offset); in ext4_superblock_csum()
163 struct ext4_super_block *es) in ext4_superblock_csum_verify() argument
168 return es->s_checksum == ext4_superblock_csum(sb, es); in ext4_superblock_csum_verify()
173 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_superblock_csum_set() local
178 es->s_checksum = ext4_superblock_csum(sb, es); in ext4_superblock_csum_set()
[all …]
Dresize.c89 struct ext4_super_block *es = sbi->s_es; in verify_group_input() local
90 ext4_fsblk_t start = ext4_blocks_count(es); in verify_group_input()
480 struct ext4_super_block *es = sbi->s_es; in setup_new_flex_group_blocks() local
492 reserved_gdb = le16_to_cpu(es->s_reserved_gdt_blocks); in setup_new_flex_group_blocks()
756 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in add_new_gdb() local
860 le16_add_cpu(&es->s_reserved_gdt_blocks, -1); in add_new_gdb()
1155 struct ext4_super_block *es = sbi->s_es; in ext4_add_new_descs() local
1163 le16_to_cpu(es->s_reserved_gdt_blocks) : 0; in ext4_add_new_descs()
1313 struct ext4_super_block *es = sbi->s_es; in ext4_update_super() local
1332 reserved_blocks = ext4_r_blocks_count(es) * 100; in ext4_update_super()
[all …]
Dfile.c521 struct extent_status es; in ext4_seek_data() local
542 ret = ext4_get_next_extent(inode, last, end - last + 1, &es); in ext4_seek_data()
551 last = es.es_lblk; in ext4_seek_data()
554 if (!ext4_es_is_unwritten(&es)) in ext4_seek_data()
563 es.es_lblk + es.es_len, &dataoff)) in ext4_seek_data()
565 last += es.es_len; in ext4_seek_data()
584 struct extent_status es; in ext4_seek_hole() local
605 ret = ext4_get_next_extent(inode, last, end - last + 1, &es); in ext4_seek_hole()
611 if (ret == 0 || es.es_lblk > last) { in ext4_seek_hole()
621 if (ext4_es_is_unwritten(&es) && in ext4_seek_hole()
[all …]
Dmmp.c136 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in kmmpd() local
141 int mmp_update_interval = le16_to_cpu(es->s_mmp_update_interval); in kmmpd()
147 mmp_block = le64_to_cpu(es->s_mmp_block); in kmmpd()
181 if (!(le32_to_cpu(es->s_feature_incompat) & in kmmpd()
278 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_multi_mount_protect() local
283 unsigned int mmp_check_interval = le16_to_cpu(es->s_mmp_update_interval); in ext4_multi_mount_protect()
287 if (mmp_block < le32_to_cpu(es->s_first_data_block) || in ext4_multi_mount_protect()
288 mmp_block >= ext4_blocks_count(es)) { in ext4_multi_mount_protect()
Dballoc.c55 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset() local
58 blocknr = blocknr - le32_to_cpu(es->s_first_data_block); in ext4_get_group_no_and_offset()
675 struct ext4_super_block *es; in ext4_count_free_clusters() local
680 es = EXT4_SB(sb)->s_es; in ext4_count_free_clusters()
710 EXT4_NUM_B2C(EXT4_SB(sb), ext4_free_blocks_count(es)), in ext4_count_free_clusters()
753 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_bg_has_super() local
758 if (group == le32_to_cpu(es->s_backup_bgs[0]) || in ext4_bg_has_super()
759 group == le32_to_cpu(es->s_backup_bgs[1])) in ext4_bg_has_super()
Dextents.c416 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_valid_extent_entries() local
430 es->s_last_error_block = cpu_to_le64(pblock); in ext4_valid_extent_entries()
1277 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_ext_grow_indepth() local
1283 if (goal > le32_to_cpu(es->s_first_data_block)) { in ext4_ext_grow_indepth()
2164 struct extent_status es; in ext4_fill_fiemap_extents() local
2231 es.es_lblk = start; in ext4_fill_fiemap_extents()
2232 es.es_len = end - start; in ext4_fill_fiemap_extents()
2233 es.es_pblk = 0; in ext4_fill_fiemap_extents()
2235 es.es_lblk = le32_to_cpu(ex->ee_block); in ext4_fill_fiemap_extents()
2236 es.es_len = ext4_ext_get_actual_len(ex); in ext4_fill_fiemap_extents()
[all …]
Dinode.c477 struct extent_status es; in ext4_map_blocks() local
502 if (ext4_es_lookup_extent(inode, map->m_lblk, &es)) { in ext4_map_blocks()
503 if (ext4_es_is_written(&es) || ext4_es_is_unwritten(&es)) { in ext4_map_blocks()
504 map->m_pblk = ext4_es_pblock(&es) + in ext4_map_blocks()
505 map->m_lblk - es.es_lblk; in ext4_map_blocks()
506 map->m_flags |= ext4_es_is_written(&es) ? in ext4_map_blocks()
508 retval = es.es_len - (map->m_lblk - es.es_lblk); in ext4_map_blocks()
512 } else if (ext4_es_is_delayed(&es) || ext4_es_is_hole(&es)) { in ext4_map_blocks()
514 retval = es.es_len - (map->m_lblk - es.es_lblk); in ext4_map_blocks()
676 ext4_es_lookup_extent(inode, map->m_lblk, &es)) { in ext4_map_blocks()
[all …]
Dext4_jbd2.c297 struct ext4_super_block *es; in __ext4_handle_dirty_metadata() local
299 es = EXT4_SB(inode->i_sb)->s_es; in __ext4_handle_dirty_metadata()
300 es->s_last_error_block = in __ext4_handle_dirty_metadata()
Dext4.h2527 struct ext4_super_block *es,
2706 static inline ext4_fsblk_t ext4_blocks_count(struct ext4_super_block *es) in ext4_blocks_count() argument
2708 return ((ext4_fsblk_t)le32_to_cpu(es->s_blocks_count_hi) << 32) | in ext4_blocks_count()
2709 le32_to_cpu(es->s_blocks_count_lo); in ext4_blocks_count()
2712 static inline ext4_fsblk_t ext4_r_blocks_count(struct ext4_super_block *es) in ext4_r_blocks_count() argument
2714 return ((ext4_fsblk_t)le32_to_cpu(es->s_r_blocks_count_hi) << 32) | in ext4_r_blocks_count()
2715 le32_to_cpu(es->s_r_blocks_count_lo); in ext4_r_blocks_count()
2718 static inline ext4_fsblk_t ext4_free_blocks_count(struct ext4_super_block *es) in ext4_free_blocks_count() argument
2720 return ((ext4_fsblk_t)le32_to_cpu(es->s_free_blocks_count_hi) << 32) | in ext4_free_blocks_count()
2721 le32_to_cpu(es->s_free_blocks_count_lo); in ext4_free_blocks_count()
[all …]
Dblock_validity.c225 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_check_blockref() local
234 es->s_last_error_block = cpu_to_le64(blk); in ext4_check_blockref()
Dialloc.c222 struct ext4_super_block *es; in ext4_free_inode() local
263 es = EXT4_SB(sb)->s_es; in ext4_free_inode()
264 if (ino < EXT4_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext4_free_inode()
1191 struct ext4_super_block *es; in ext4_count_free_inodes() local
1195 es = EXT4_SB(sb)->s_es; in ext4_count_free_inodes()
1220 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count); in ext4_count_free_inodes()
Dmigrate.c618 struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es; in ext4_ind_migrate() local
653 if (ext4_blocks_count(es) > EXT4_MAX_BLOCK_FILE_PHYS || in ext4_ind_migrate()
/fs/ext2/
Dsuper.c40 struct ext2_super_block *es, int wait);
53 struct ext2_super_block *es = sbi->s_es; in ext2_error() local
58 es->s_state |= cpu_to_le16(EXT2_ERROR_FS); in ext2_error()
60 ext2_sync_super(sb, es, 1); in ext2_error()
103 struct ext2_super_block *es = EXT2_SB(sb)->s_es; in ext2_update_dynamic_rev() local
105 if (le32_to_cpu(es->s_rev_level) > EXT2_GOOD_OLD_REV) in ext2_update_dynamic_rev()
113 es->s_first_ino = cpu_to_le32(EXT2_GOOD_OLD_FIRST_INO); in ext2_update_dynamic_rev()
114 es->s_inode_size = cpu_to_le16(EXT2_GOOD_OLD_INODE_SIZE); in ext2_update_dynamic_rev()
115 es->s_rev_level = cpu_to_le32(EXT2_DYNAMIC_REV); in ext2_update_dynamic_rev()
139 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()
1246 struct ext2_super_block *es; in ext2_new_blocks() local
1268 es = EXT2_SB(sb)->s_es; in ext2_new_blocks()
1293 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks()
1294 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks()
1295 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()
524 if (ino < EXT2_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext2_new_inode()
630 struct ext2_super_block *es; in ext2_count_free_inodes() local
634 es = EXT2_SB(sb)->s_es; in ext2_count_free_inodes()
/fs/gfs2/
Dxattr.c890 struct gfs2_ea_header *ea, struct ea_set *es) in ea_set_simple_noalloc() argument
892 struct gfs2_ea_request *er = es->es_er; in ea_set_simple_noalloc()
902 if (es->ea_split) in ea_set_simple_noalloc()
907 if (es->es_el) in ea_set_simple_noalloc()
908 ea_set_remove_stuffed(ip, es->es_el); in ea_set_simple_noalloc()
925 struct ea_set *es = private; in ea_set_simple_alloc() local
926 struct gfs2_ea_header *ea = es->es_ea; in ea_set_simple_alloc()
929 gfs2_trans_add_meta(ip->i_gl, es->es_bh); in ea_set_simple_alloc()
931 if (es->ea_split) in ea_set_simple_alloc()
938 if (es->es_el) in ea_set_simple_alloc()
[all …]
/fs/nfsd/
Dblocklayoutxdr.c35 *p++ = cpu_to_be32(b->es); in nfsd4_block_encode_layoutget()
158 bex.es = be32_to_cpup(p++); in nfsd4_block_decode_layoutupdate()
159 if (bex.es != PNFS_BLOCK_READWRITE_DATA) { in nfsd4_block_decode_layoutupdate()
161 __func__, bex.es); in nfsd4_block_decode_layoutupdate()
Dblocklayout.c64 bex->es = PNFS_BLOCK_READ_DATA; in nfsd4_block_proc_layoutget()
66 bex->es = PNFS_BLOCK_READWRITE_DATA; in nfsd4_block_proc_layoutget()
79 bex->es = PNFS_BLOCK_INVALID_DATA; in nfsd4_block_proc_layoutget()
86 bex->es = PNFS_BLOCK_NONE_DATA; in nfsd4_block_proc_layoutget()
105 dprintk("GET: 0x%llx:0x%llx %d\n", bex->foff, bex->len, bex->es); in nfsd4_block_proc_layoutget()
Dblocklayoutxdr.h15 enum pnfs_block_extent_state es; member
/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.c491 static const char *es = ". Cannot remount read-write."; in ntfs_remount() local
496 es); in ntfs_remount()
500 ntfs_error(sb, "Volume is dirty and read-only%s", es); in ntfs_remount()
505 "and is read-only%s", es); in ntfs_remount()
512 es); in ntfs_remount()
517 "information flags%s", es); in ntfs_remount()
527 "compatibility flag%s", es); in ntfs_remount()
535 es); in ntfs_remount()
541 es); in ntfs_remount()
547 "($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()
Dattrib.c870 static const char *es = " Unmount and run chkdsk."; in ntfs_external_attr_find() local
986 base_ni->mft_no, es); in ntfs_external_attr_find()
1011 base_ni->mft_no, es); in ntfs_external_attr_find()
1087 es); in ntfs_external_attr_find()

12