• Home
  • Raw
  • Download

Lines Matching refs:handle

420 static struct buffer_head *bclean(handle_t *handle, struct super_block *sb,  in bclean()  argument
430 if ((err = ext4_journal_get_write_access(handle, bh))) { in bclean()
441 static int ext4_resize_ensure_credits_batch(handle_t *handle, int credits) in ext4_resize_ensure_credits_batch() argument
443 return ext4_journal_ensure_credits_fn(handle, credits, in ext4_resize_ensure_credits_batch()
456 static int set_flexbg_block_bitmap(struct super_block *sb, handle_t *handle, in set_flexbg_block_bitmap() argument
486 err = ext4_resize_ensure_credits_batch(handle, 1); in set_flexbg_block_bitmap()
495 err = ext4_journal_get_write_access(handle, bh); in set_flexbg_block_bitmap()
504 err = ext4_handle_dirty_metadata(handle, NULL, bh); in set_flexbg_block_bitmap()
537 handle_t *handle; in setup_new_flex_group_blocks() local
550 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, EXT4_MAX_TRANS_DATA); in setup_new_flex_group_blocks()
551 if (IS_ERR(handle)) in setup_new_flex_group_blocks()
552 return PTR_ERR(handle); in setup_new_flex_group_blocks()
574 err = ext4_resize_ensure_credits_batch(handle, 1); in setup_new_flex_group_blocks()
585 err = ext4_journal_get_write_access(handle, gdb); in setup_new_flex_group_blocks()
594 err = ext4_handle_dirty_metadata(handle, NULL, gdb); in setup_new_flex_group_blocks()
632 err = ext4_resize_ensure_credits_batch(handle, 1); in setup_new_flex_group_blocks()
636 bh = bclean(handle, sb, block); in setup_new_flex_group_blocks()
650 err = ext4_handle_dirty_metadata(handle, NULL, bh); in setup_new_flex_group_blocks()
661 err = ext4_resize_ensure_credits_batch(handle, 1); in setup_new_flex_group_blocks()
665 bh = bclean(handle, sb, block); in setup_new_flex_group_blocks()
673 err = ext4_handle_dirty_metadata(handle, NULL, bh); in setup_new_flex_group_blocks()
690 err = set_flexbg_block_bitmap(sb, handle, in setup_new_flex_group_blocks()
704 err = set_flexbg_block_bitmap(sb, handle, in setup_new_flex_group_blocks()
716 err2 = ext4_journal_stop(handle); in setup_new_flex_group_blocks()
806 static int add_new_gdb(handle_t *handle, struct inode *inode, in add_new_gdb() argument
853 err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); in add_new_gdb()
858 err = ext4_journal_get_write_access(handle, gdb_bh); in add_new_gdb()
863 err = ext4_journal_get_write_access(handle, dind); in add_new_gdb()
870 err = ext4_reserve_inode_write(handle, inode, &iloc); in add_new_gdb()
893 err = ext4_handle_dirty_metadata(handle, NULL, dind); in add_new_gdb()
900 ext4_mark_iloc_dirty(handle, inode, &iloc); in add_new_gdb()
902 err = ext4_handle_dirty_metadata(handle, NULL, gdb_bh); in add_new_gdb()
921 err = ext4_handle_dirty_super(handle, sb); in add_new_gdb()
939 handle_t *handle, ext4_group_t group) { in add_new_gdb_meta_bg() argument
969 err = ext4_journal_get_write_access(handle, gdb_bh); in add_new_gdb_meta_bg()
995 static int reserve_backup_gdb(handle_t *handle, struct inode *inode, in reserve_backup_gdb() argument
1055 if ((err = ext4_journal_get_write_access(handle, primary[i]))) in reserve_backup_gdb()
1059 if ((err = ext4_reserve_inode_write(handle, inode, &iloc))) in reserve_backup_gdb()
1074 err2 = ext4_handle_dirty_metadata(handle, NULL, primary[i]); in reserve_backup_gdb()
1080 ext4_mark_iloc_dirty(handle, inode, &iloc); in reserve_backup_gdb()
1120 handle_t *handle; in update_backups() local
1123 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, EXT4_MAX_TRANS_DATA); in update_backups()
1124 if (IS_ERR(handle)) { in update_backups()
1126 err = PTR_ERR(handle); in update_backups()
1143 err = ext4_resize_ensure_credits_batch(handle, 1); in update_backups()
1162 if ((err = ext4_journal_get_write_access(handle, bh))) { in update_backups()
1172 err = ext4_handle_dirty_metadata(handle, NULL, bh); in update_backups()
1184 if ((err2 = ext4_journal_stop(handle)) && !err) in update_backups()
1217 static int ext4_add_new_descs(handle_t *handle, struct super_block *sb, in ext4_add_new_descs() argument
1245 err = ext4_journal_get_write_access(handle, gdb_bh); in ext4_add_new_descs()
1248 err = reserve_backup_gdb(handle, resize_inode, group); in ext4_add_new_descs()
1250 err = add_new_gdb_meta_bg(sb, handle, group); in ext4_add_new_descs()
1252 err = add_new_gdb(handle, resize_inode, group); in ext4_add_new_descs()
1304 static int ext4_setup_new_descs(handle_t *handle, struct super_block *sb, in ext4_setup_new_descs() argument
1349 err = ext4_handle_dirty_metadata(handle, NULL, gdb_bh); in ext4_setup_new_descs()
1488 handle_t *handle; in ext4_flex_group_add() local
1513 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credit); in ext4_flex_group_add()
1514 if (IS_ERR(handle)) { in ext4_flex_group_add()
1515 err = PTR_ERR(handle); in ext4_flex_group_add()
1520 err = ext4_journal_get_write_access(handle, sbi->s_sbh); in ext4_flex_group_add()
1526 err = ext4_add_new_descs(handle, sb, group, in ext4_flex_group_add()
1531 err = ext4_setup_new_descs(handle, sb, flex_gd); in ext4_flex_group_add()
1537 err = ext4_handle_dirty_super(handle, sb); in ext4_flex_group_add()
1540 err2 = ext4_journal_stop(handle); in ext4_flex_group_add()
1720 handle_t *handle; in ext4_group_extend_no_check() local
1726 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, 3); in ext4_group_extend_no_check()
1727 if (IS_ERR(handle)) { in ext4_group_extend_no_check()
1728 err = PTR_ERR(handle); in ext4_group_extend_no_check()
1734 err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); in ext4_group_extend_no_check()
1745 err = ext4_group_add_blocks(handle, sb, o_blocks_count, add); in ext4_group_extend_no_check()
1748 ext4_handle_dirty_super(handle, sb); in ext4_group_extend_no_check()
1752 err2 = ext4_journal_stop(handle); in ext4_group_extend_no_check()
1855 handle_t *handle; in ext4_convert_meta_bg() local
1888 handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credits); in ext4_convert_meta_bg()
1889 if (IS_ERR(handle)) in ext4_convert_meta_bg()
1890 return PTR_ERR(handle); in ext4_convert_meta_bg()
1893 err = ext4_journal_get_write_access(handle, sbi->s_sbh); in ext4_convert_meta_bg()
1902 err = ext4_handle_dirty_super(handle, sb); in ext4_convert_meta_bg()
1910 ext4_free_blocks(handle, inode, NULL, nr, 1, in ext4_convert_meta_bg()
1916 err = ext4_mark_inode_dirty(handle, inode); in ext4_convert_meta_bg()
1922 ret = ext4_journal_stop(handle); in ext4_convert_meta_bg()