Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 9 of 9) sorted by relevance

/fs/sysfs/
Dgroup.c20 const struct attribute_group *grp) in remove_files() argument
25 for (i = 0, attr = grp->attrs; *attr; i++, attr++) in remove_files()
30 const struct attribute_group *grp, int update) in create_files() argument
35 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files()
43 if (grp->is_visible) { in create_files()
44 mode = grp->is_visible(kobj, *attr, i); in create_files()
54 remove_files(dir_sd, kobj, grp); in create_files()
60 const struct attribute_group *grp) in internal_create_group() argument
70 if (!grp->attrs) { in internal_create_group()
72 kobj->name, grp->name ? "" : grp->name); in internal_create_group()
[all …]
/fs/xfs/
Dxfs_mru_cache.c135 unsigned int grp; in _xfs_mru_cache_migrate() local
173 for (grp = 0; grp < mru->grp_count; grp++) { in _xfs_mru_cache_migrate()
176 lru_list = mru->lists + ((mru->lru_grp + grp) % mru->grp_count); in _xfs_mru_cache_migrate()
179 (mru->grp_count + grp) * mru->grp_time; in _xfs_mru_cache_migrate()
199 unsigned int grp = 0; in _xfs_mru_cache_list_insert() local
215 grp = (now - mru->time_zero) / mru->grp_time; in _xfs_mru_cache_list_insert()
216 grp = (mru->lru_grp + grp) % mru->grp_count; in _xfs_mru_cache_list_insert()
220 list_add_tail(&elem->list_node, mru->lists + grp); in _xfs_mru_cache_list_insert()
345 int err = 0, grp; in xfs_mru_cache_create() local
369 for (grp = 0; grp < mru->grp_count; grp++) in xfs_mru_cache_create()
[all …]
/fs/ext4/
Dialloc.c73 struct ext4_group_info *grp; in ext4_init_inode_bitmap() local
81 grp = ext4_get_group_info(sb, block_group); in ext4_init_inode_bitmap()
82 if (!EXT4_MB_GRP_BBITMAP_CORRUPT(grp)) in ext4_init_inode_bitmap()
84 grp->bb_free); in ext4_init_inode_bitmap()
85 set_bit(EXT4_GROUP_INFO_BBITMAP_CORRUPT_BIT, &grp->bb_state); in ext4_init_inode_bitmap()
86 if (!EXT4_MB_GRP_IBITMAP_CORRUPT(grp)) { in ext4_init_inode_bitmap()
92 set_bit(EXT4_GROUP_INFO_IBITMAP_CORRUPT_BIT, &grp->bb_state); in ext4_init_inode_bitmap()
128 struct ext4_group_info *grp; in ext4_read_inode_bitmap() local
198 grp = ext4_get_group_info(sb, block_group); in ext4_read_inode_bitmap()
199 if (!EXT4_MB_GRP_IBITMAP_CORRUPT(grp)) { in ext4_read_inode_bitmap()
[all …]
Dballoc.c188 struct ext4_group_info *grp; in ext4_init_block_bitmap() local
195 grp = ext4_get_group_info(sb, block_group); in ext4_init_block_bitmap()
196 if (!EXT4_MB_GRP_BBITMAP_CORRUPT(grp)) in ext4_init_block_bitmap()
198 grp->bb_free); in ext4_init_block_bitmap()
199 set_bit(EXT4_GROUP_INFO_BBITMAP_CORRUPT_BIT, &grp->bb_state); in ext4_init_block_bitmap()
200 if (!EXT4_MB_GRP_IBITMAP_CORRUPT(grp)) { in ext4_init_block_bitmap()
206 set_bit(EXT4_GROUP_INFO_IBITMAP_CORRUPT_BIT, &grp->bb_state); in ext4_init_block_bitmap()
370 struct ext4_group_info *grp = ext4_get_group_info(sb, block_group); in ext4_validate_block_bitmap() local
382 if (!EXT4_MB_GRP_BBITMAP_CORRUPT(grp)) in ext4_validate_block_bitmap()
384 grp->bb_free); in ext4_validate_block_bitmap()
[all …]
Dmballoc.c564 struct ext4_group_info *grp; in __mb_check_buddy() local
638 grp = ext4_get_group_info(sb, e4b->bd_group); in __mb_check_buddy()
639 list_for_each(cur, &grp->bb_prealloc_list) { in __mb_check_buddy()
665 struct ext4_group_info *grp) in ext4_mb_mark_free_simple() argument
689 grp->bb_counters[min]++; in ext4_mb_mark_free_simple()
704 mb_set_largest_free_order(struct super_block *sb, struct ext4_group_info *grp) in mb_set_largest_free_order() argument
709 grp->bb_largest_free_order = -1; /* uninit */ in mb_set_largest_free_order()
713 if (grp->bb_counters[i] > 0) { in mb_set_largest_free_order()
714 grp->bb_largest_free_order = i; in mb_set_largest_free_order()
724 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_mb_generate_buddy() local
[all …]
Dext4.h2430 #define ext4_grp_locked_error(sb, grp, ino, block, fmt, ...) \ argument
2431 __ext4_grp_locked_error(__func__, __LINE__, sb, grp, ino, block, \
2468 #define ext4_grp_locked_error(sb, grp, ino, block, fmt, ...) \ argument
2471 __ext4_grp_locked_error("", 0, sb, grp, ino, block, " "); \
2691 #define EXT4_MB_GRP_NEED_INIT(grp) \ argument
2692 (test_bit(EXT4_GROUP_INFO_NEED_INIT_BIT, &((grp)->bb_state)))
2693 #define EXT4_MB_GRP_BBITMAP_CORRUPT(grp) \ argument
2694 (test_bit(EXT4_GROUP_INFO_BBITMAP_CORRUPT_BIT, &((grp)->bb_state)))
2695 #define EXT4_MB_GRP_IBITMAP_CORRUPT(grp) \ argument
2696 (test_bit(EXT4_GROUP_INFO_IBITMAP_CORRUPT_BIT, &((grp)->bb_state)))
[all …]
Dsuper.c639 struct super_block *sb, ext4_group_t grp, in __ext4_grp_locked_error() argument
658 sb->s_id, function, line, grp); in __ext4_grp_locked_error()
673 ext4_unlock_group(sb, grp); in __ext4_grp_locked_error()
686 ext4_lock_group(sb, grp); in __ext4_grp_locked_error()
2079 ext4_group_t i, grp = sbi->s_groups_count; in ext4_check_descriptors() local
2095 if ((grp == sbi->s_groups_count) && in ext4_check_descriptors()
2097 grp = i; in ext4_check_descriptors()
2137 *first_not_zeroed = grp; in ext4_check_descriptors()
3272 static int count_overhead(struct super_block *sb, ext4_group_t grp, in count_overhead() argument
3282 return (ext4_bg_has_super(sb, grp) + ext4_bg_num_gdb(sb, grp) + in count_overhead()
[all …]
Dresize.c706 unsigned grp; in verify_reserved_gdb() local
710 while ((grp = ext4_list_backups(sb, &three, &five, &seven)) < end) { in verify_reserved_gdb()
712 grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){ in verify_reserved_gdb()
715 blk, grp, in verify_reserved_gdb()
716 grp * in verify_reserved_gdb()
/fs/ext3/
Dresize.c394 unsigned grp; in verify_reserved_gdb() local
398 while ((grp = ext3_list_backups(sb, &three, &five, &seven)) < end) { in verify_reserved_gdb()
399 if (le32_to_cpu(*p++) != grp * EXT3_BLOCKS_PER_GROUP(sb) + blk){ in verify_reserved_gdb()
403 blk, grp, in verify_reserved_gdb()
404 grp * EXT3_BLOCKS_PER_GROUP(sb) + blk); in verify_reserved_gdb()