Lines Matching refs:handle

55 int ext4_update_primary_sb(struct super_block *sb, handle_t *handle,  in ext4_update_primary_sb()  argument
67 err = ext4_journal_get_write_access(handle, sb, in ext4_update_primary_sb()
85 err = ext4_handle_dirty_metadata(handle, NULL, bh); in ext4_update_primary_sb()
104 handle_t *handle, ext4_group_t grp, in ext4_update_backup_sb() argument
128 trace_ext4_update_sb(sb, sb_block, handle ? 1 : 0); in ext4_update_backup_sb()
134 if (handle) { in ext4_update_backup_sb()
136 err = ext4_journal_get_write_access(handle, sb, in ext4_update_backup_sb()
158 if (handle) { in ext4_update_backup_sb()
159 err = ext4_handle_dirty_metadata(handle, NULL, bh); in ext4_update_backup_sb()
188 handle_t *handle; in ext4_update_superblocks_fn() local
211 handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 3); in ext4_update_superblocks_fn()
212 if (IS_ERR(handle)) { in ext4_update_superblocks_fn()
213 err = PTR_ERR(handle); in ext4_update_superblocks_fn()
218 err = ext4_update_primary_sb(sb, handle, func, arg); in ext4_update_superblocks_fn()
240 ret = ext4_update_backup_sb(sb, handle, grp, func, arg); in ext4_update_superblocks_fn()
250 if (handle && i > 1) { in ext4_update_superblocks_fn()
256 err = ext4_journal_stop(handle); in ext4_update_superblocks_fn()
259 handle = NULL; in ext4_update_superblocks_fn()
266 if (handle) { in ext4_update_superblocks_fn()
267 ret = ext4_journal_stop(handle); in ext4_update_superblocks_fn()
366 handle_t *handle; in swap_inode_boot_loader() local
415 handle = ext4_journal_start(inode_bl, EXT4_HT_MOVE_EXTENTS, 2); in swap_inode_boot_loader()
416 if (IS_ERR(handle)) { in swap_inode_boot_loader()
420 ext4_fc_mark_ineligible(sb, EXT4_FC_REASON_SWAP_BOOT, handle); in swap_inode_boot_loader()
438 ext4_ext_tree_init(handle, inode_bl); in swap_inode_boot_loader()
463 err = ext4_mark_inode_dirty(handle, inode); in swap_inode_boot_loader()
471 ext4_mark_inode_dirty(handle, inode); in swap_inode_boot_loader()
479 err = ext4_mark_inode_dirty(handle, inode_bl); in swap_inode_boot_loader()
500 ext4_mark_inode_dirty(handle, inode); in swap_inode_boot_loader()
501 ext4_mark_inode_dirty(handle, inode_bl); in swap_inode_boot_loader()
505 ext4_journal_stop(handle); in swap_inode_boot_loader()
581 handle_t *handle = NULL; in ext4_ioctl_setflags() local
640 handle = ext4_journal_start(inode, EXT4_HT_INODE, 1); in ext4_ioctl_setflags()
641 if (IS_ERR(handle)) { in ext4_ioctl_setflags()
642 err = PTR_ERR(handle); in ext4_ioctl_setflags()
646 ext4_handle_sync(handle); in ext4_ioctl_setflags()
647 err = ext4_reserve_inode_write(handle, inode, &iloc); in ext4_ioctl_setflags()
670 err = ext4_mark_iloc_dirty(handle, inode, &iloc); in ext4_ioctl_setflags()
672 ext4_journal_stop(handle); in ext4_ioctl_setflags()
708 handle_t *handle; in ext4_ioctl_setproject() local
753 handle = ext4_journal_start(inode, EXT4_HT_QUOTA, in ext4_ioctl_setproject()
756 if (IS_ERR(handle)) in ext4_ioctl_setproject()
757 return PTR_ERR(handle); in ext4_ioctl_setproject()
759 err = ext4_reserve_inode_write(handle, inode, &iloc); in ext4_ioctl_setproject()
781 rc = ext4_mark_iloc_dirty(handle, inode, &iloc); in ext4_ioctl_setproject()
785 ext4_journal_stop(handle); in ext4_ioctl_setproject()
1240 handle_t *handle; in __ext4_ioctl() local
1263 handle = ext4_journal_start(inode, EXT4_HT_INODE, 1); in __ext4_ioctl()
1264 if (IS_ERR(handle)) { in __ext4_ioctl()
1265 err = PTR_ERR(handle); in __ext4_ioctl()
1268 err = ext4_reserve_inode_write(handle, inode, &iloc); in __ext4_ioctl()
1273 err = ext4_mark_iloc_dirty(handle, inode, &iloc); in __ext4_ioctl()
1275 ext4_journal_stop(handle); in __ext4_ioctl()