Home
last modified time | relevance | path

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

/fs/yaffs2/
Dyaffs_qsort.c47 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ argument
48 es % sizeof(long) ? 2 : es == sizeof(long) ? 0 : 1;
65 swapfunc(a, b, es, swaptype); \
83 yaffs_qsort(void *aa, size_t n, size_t es, in yaffs_qsort() argument
90 loop: SWAPINIT(a, es); in yaffs_qsort()
93 for (pm = (char *)a + es; pm < (char *) a + n * es; pm += es) in yaffs_qsort()
94 for (pl = pm; pl > (char *) a && cmp(pl - es, pl) > 0; in yaffs_qsort()
95 pl -= es) in yaffs_qsort()
96 yswap(pl, pl - es); in yaffs_qsort()
99 pm = (char *)a + (n / 2) * es; in yaffs_qsort()
[all …]
/fs/ext2/
Dsuper.c42 struct ext2_super_block *es);
51 struct ext2_super_block *es = sbi->s_es; in ext2_error() local
55 es->s_state |= cpu_to_le16(EXT2_ERROR_FS); in ext2_error()
56 ext2_sync_super(sb, es); in ext2_error()
88 struct ext2_super_block *es = EXT2_SB(sb)->s_es; in ext2_update_dynamic_rev() local
90 if (le32_to_cpu(es->s_rev_level) > EXT2_GOOD_OLD_REV) in ext2_update_dynamic_rev()
98 es->s_first_ino = cpu_to_le32(EXT2_GOOD_OLD_FIRST_INO); in ext2_update_dynamic_rev()
99 es->s_inode_size = cpu_to_le16(EXT2_GOOD_OLD_INODE_SIZE); in ext2_update_dynamic_rev()
100 es->s_rev_level = cpu_to_le32(EXT2_DYNAMIC_REV); in ext2_update_dynamic_rev()
119 struct ext2_super_block *es = sbi->s_es; in ext2_put_super() local
[all …]
Dballoc.c498 struct ext2_super_block * es = sbi->s_es; in ext2_free_blocks() local
501 if (block < le32_to_cpu(es->s_first_data_block) || in ext2_free_blocks()
503 block + count > le32_to_cpu(es->s_blocks_count)) { in ext2_free_blocks()
514 block_group = (block - le32_to_cpu(es->s_first_data_block)) / in ext2_free_blocks()
516 bit = (block - le32_to_cpu(es->s_first_data_block)) % in ext2_free_blocks()
1232 struct ext2_super_block *es; in ext2_new_blocks() local
1256 es = EXT2_SB(sb)->s_es; in ext2_new_blocks()
1281 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks()
1282 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks()
1283 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks()
[all …]
Dialloc.c112 struct ext2_super_block * es; in ext2_free_inode() local
128 es = EXT2_SB(sb)->s_es; in ext2_free_inode()
135 ino > le32_to_cpu(es->s_inodes_count)) { in ext2_free_inode()
270 struct ext2_super_block *es = sbi->s_es; in find_group_orlov() local
323 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()
447 struct ext2_super_block *es; in ext2_new_inode() local
459 es = sbi->s_es; in ext2_new_inode()
526 if (ino < EXT2_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext2_new_inode()
631 struct ext2_super_block *es; in ext2_count_free_inodes() local
635 es = EXT2_SB(sb)->s_es; in ext2_count_free_inodes()
/fs/ext3/
Dsuper.c52 struct ext3_super_block *es,
55 struct ext3_super_block * es);
57 struct ext3_super_block * es);
156 struct ext3_super_block *es = EXT3_SB(sb)->s_es; in ext3_handle_error() local
159 es->s_state |= cpu_to_le16(EXT3_ERROR_FS); in ext3_handle_error()
175 ext3_commit_super(sb, es, 1); in ext3_handle_error()
303 struct ext3_super_block *es = EXT3_SB(sb)->s_es; in ext3_update_dynamic_rev() local
305 if (le32_to_cpu(es->s_rev_level) > EXT3_GOOD_OLD_REV) in ext3_update_dynamic_rev()
313 es->s_first_ino = cpu_to_le32(EXT3_GOOD_OLD_FIRST_INO); in ext3_update_dynamic_rev()
314 es->s_inode_size = cpu_to_le16(EXT3_GOOD_OLD_INODE_SIZE); in ext3_update_dynamic_rev()
[all …]
Dresize.c27 struct ext3_super_block *es = sbi->s_es; in verify_group_input() local
28 ext3_fsblk_t start = le32_to_cpu(es->s_blocks_count); in verify_group_input()
34 le16_to_cpu(es->s_reserved_gdt_blocks)) : 0; in verify_group_input()
54 else if ((start - le32_to_cpu(es->s_first_data_block)) % in verify_group_input()
421 struct ext3_super_block *es = EXT3_SB(sb)->s_es; in add_new_gdb() local
521 le16_add_cpu(&es->s_reserved_gdt_blocks, -1); in add_new_gdb()
759 struct ext3_super_block *es = sbi->s_es; in ext3_group_add() local
761 le16_to_cpu(es->s_reserved_gdt_blocks) : 0; in ext3_group_add()
779 if (le32_to_cpu(es->s_blocks_count) + input->blocks_count < in ext3_group_add()
780 le32_to_cpu(es->s_blocks_count)) { in ext3_group_add()
[all …]
Dialloc.c99 struct ext3_super_block * es; in ext3_free_inode() local
136 es = EXT3_SB(sb)->s_es; in ext3_free_inode()
137 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext3_free_inode()
258 struct ext3_super_block *es = sbi->s_es; in find_group_orlov() local
302 blocks_per_dir = (le32_to_cpu(es->s_blocks_count) - freeb) / ndirs; in find_group_orlov()
428 struct ext3_super_block * es; in ext3_new_inode() local
446 es = sbi->s_es; in ext3_new_inode()
516 if (ino < EXT3_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext3_new_inode()
718 struct ext3_super_block *es; in ext3_count_free_inodes() local
722 es = EXT3_SB(sb)->s_es; in ext3_count_free_inodes()
[all …]
Dballoc.c487 struct ext3_super_block * es; in ext3_free_blocks_sb() local
494 es = sbi->s_es; in ext3_free_blocks_sb()
495 if (block < le32_to_cpu(es->s_first_data_block) || in ext3_free_blocks_sb()
497 block + count > le32_to_cpu(es->s_blocks_count)) { in ext3_free_blocks_sb()
508 block_group = (block - le32_to_cpu(es->s_first_data_block)) / in ext3_free_blocks_sb()
510 bit = (block - le32_to_cpu(es->s_first_data_block)) % in ext3_free_blocks_sb()
1484 struct ext3_super_block *es; in ext3_new_blocks() local
1511 es = EXT3_SB(sb)->s_es; in ext3_new_blocks()
1533 if (goal < le32_to_cpu(es->s_first_data_block) || in ext3_new_blocks()
1534 goal >= le32_to_cpu(es->s_blocks_count)) in ext3_new_blocks()
[all …]
/fs/ext4/
Dsuper.c55 struct ext4_super_block *es, int sync);
57 struct ext4_super_block *es);
59 struct ext4_super_block *es);
287 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_handle_error() local
290 es->s_state |= cpu_to_le16(EXT4_ERROR_FS); in ext4_handle_error()
306 ext4_commit_super(sb, es, 1); in ext4_handle_error()
437 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_grp_locked_error() local
447 es->s_state |= cpu_to_le16(EXT4_ERROR_FS); in ext4_grp_locked_error()
448 ext4_commit_super(sb, es, 0); in ext4_grp_locked_error()
471 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_update_dynamic_rev() local
[all …]
Dresize.c27 struct ext4_super_block *es = sbi->s_es; in verify_group_input() local
28 ext4_fsblk_t start = ext4_blocks_count(es); in verify_group_input()
34 le16_to_cpu(es->s_reserved_gdt_blocks)) : 0; in verify_group_input()
402 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in add_new_gdb() local
502 le16_add_cpu(&es->s_reserved_gdt_blocks, -1); in add_new_gdb()
741 struct ext4_super_block *es = sbi->s_es; in ext4_group_add() local
743 le16_to_cpu(es->s_reserved_gdt_blocks) : 0; in ext4_group_add()
762 if (ext4_blocks_count(es) + input->blocks_count < in ext4_group_add()
763 ext4_blocks_count(es)) { in ext4_group_add()
768 if (le32_to_cpu(es->s_inodes_count) + EXT4_INODES_PER_GROUP(sb) < in ext4_group_add()
[all …]
Dext4.h1118 struct ext4_super_block *es,
1168 static inline ext4_fsblk_t ext4_blocks_count(struct ext4_super_block *es) in ext4_blocks_count() argument
1170 return ((ext4_fsblk_t)le32_to_cpu(es->s_blocks_count_hi) << 32) | in ext4_blocks_count()
1171 le32_to_cpu(es->s_blocks_count_lo); in ext4_blocks_count()
1174 static inline ext4_fsblk_t ext4_r_blocks_count(struct ext4_super_block *es) in ext4_r_blocks_count() argument
1176 return ((ext4_fsblk_t)le32_to_cpu(es->s_r_blocks_count_hi) << 32) | in ext4_r_blocks_count()
1177 le32_to_cpu(es->s_r_blocks_count_lo); in ext4_r_blocks_count()
1180 static inline ext4_fsblk_t ext4_free_blocks_count(struct ext4_super_block *es) in ext4_free_blocks_count() argument
1182 return ((ext4_fsblk_t)le32_to_cpu(es->s_free_blocks_count_hi) << 32) | in ext4_free_blocks_count()
1183 le32_to_cpu(es->s_free_blocks_count_lo); in ext4_free_blocks_count()
[all …]
Dballoc.c35 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset() local
38 blocknr = blocknr - le32_to_cpu(es->s_first_data_block); in ext4_get_group_no_and_offset()
394 struct ext4_super_block *es; in ext4_add_groupblocks() local
401 es = sbi->s_es; in ext4_add_groupblocks()
674 struct ext4_super_block *es; in ext4_count_free_blocks() local
679 es = EXT4_SB(sb)->s_es; in ext4_count_free_blocks()
702 ", computed = %llu, %llu\n", ext4_free_blocks_count(es), in ext4_count_free_blocks()
Dialloc.c189 struct ext4_super_block *es; in ext4_free_inode() local
233 es = EXT4_SB(sb)->s_es; in ext4_free_inode()
234 if (ino < EXT4_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) { in ext4_free_inode()
446 struct ext4_super_block *es = sbi->s_es; in find_group_orlov() local
493 blocks_per_dir = ext4_blocks_count(es) - freeb; in find_group_orlov()
694 struct ext4_super_block *es; in ext4_new_inode() local
717 es = sbi->s_es; in ext4_new_inode()
1054 struct ext4_super_block *es; in ext4_count_free_inodes() local
1058 es = EXT4_SB(sb)->s_es; in ext4_count_free_inodes()
1080 le32_to_cpu(es->s_free_inodes_count), desc_count, bitmap_count); in ext4_count_free_inodes()
Dmballoc.c1535 struct ext4_super_block *es = sbi->s_es; in ext4_mb_find_by_goal() local
1553 ex.fe_start + le32_to_cpu(es->s_first_data_block); in ext4_mb_find_by_goal()
2587 struct ext4_super_block *es = sbi->s_es; in ext4_mb_init_backend() local
2610 le16_to_cpu(es->s_reserved_gdt_blocks); in ext4_mb_init_backend()
2997 struct ext4_super_block *es; in ext4_mb_mark_diskspace_used() local
3010 es = sbi->s_es; in ext4_mb_mark_diskspace_used()
3036 + le32_to_cpu(es->s_first_data_block); in ext4_mb_mark_diskspace_used()
4275 struct ext4_super_block *es = sbi->s_es; in ext4_mb_initialize_context() local
4290 if (goal < le32_to_cpu(es->s_first_data_block) || in ext4_mb_initialize_context()
4291 goal >= ext4_blocks_count(es)) in ext4_mb_initialize_context()
[all …]
/fs/gfs2/
Deattr.c823 struct gfs2_ea_header *ea, struct ea_set *es) in ea_set_simple_noalloc() argument
825 struct gfs2_ea_request *er = es->es_er; in ea_set_simple_noalloc()
835 if (es->ea_split) in ea_set_simple_noalloc()
840 if (es->es_el) in ea_set_simple_noalloc()
841 ea_set_remove_stuffed(ip, es->es_el); in ea_set_simple_noalloc()
864 struct ea_set *es = private; in ea_set_simple_alloc() local
865 struct gfs2_ea_header *ea = es->es_ea; in ea_set_simple_alloc()
868 gfs2_trans_add_bh(ip->i_gl, es->es_bh, 1); in ea_set_simple_alloc()
870 if (es->ea_split) in ea_set_simple_alloc()
877 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.c463 static const char *es = ". Cannot remount read-write."; in ntfs_remount() local
468 es); in ntfs_remount()
472 ntfs_error(sb, "Volume is dirty and read-only%s", es); in ntfs_remount()
477 "and is read-only%s", es); in ntfs_remount()
484 es); in ntfs_remount()
489 "information flags%s", es); in ntfs_remount()
499 "compatibility flag%s", es); in ntfs_remount()
507 es); in ntfs_remount()
513 es); in ntfs_remount()
519 "($UsnJrnl)%s", es); in ntfs_remount()
Dinode.c1869 static const char *es = " Not allowed. $MFT is corrupt. " in ntfs_read_inode_mount() local
1877 "compressed.%s", es); in ntfs_read_inode_mount()
1885 "sparse.%s", es); in ntfs_read_inode_mount()
2331 static const char *es = " Leaving inconsistent metadata. Unmount and run " variable
2723 IS_ERR(m) ? PTR_ERR(m) : err, es); in ntfs_truncate()
2734 (unsigned)le32_to_cpu(ni->type), mp_size, es); in ntfs_truncate()
2758 err, es); in ntfs_truncate()
Dattrib.c869 static const char *es = " Unmount and run chkdsk."; in ntfs_external_attr_find() local
985 base_ni->mft_no, es); in ntfs_external_attr_find()
1010 base_ni->mft_no, es); in ntfs_external_attr_find()
1086 es); in ntfs_external_attr_find()