Lines Matching refs:osb
59 static int ocfs2_truncate_for_delete(struct ocfs2_super *osb,
121 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, in ocfs2_iget() argument
126 struct super_block *sb = osb->sb; in ocfs2_iget()
128 journal_t *journal = osb->journal->j_journal; in ocfs2_iget()
264 struct ocfs2_super *osb; in ocfs2_populate_inode() local
268 osb = OCFS2_SB(sb); in ocfs2_populate_inode()
270 if ((osb->s_mount_opt & OCFS2_MOUNT_LOCALFLOCKS) || in ocfs2_populate_inode()
271 ocfs2_mount_local(osb) || !ocfs2_stack_supports_plocks()) in ocfs2_populate_inode()
283 BUG_ON(le32_to_cpu(fe->i_fs_generation) != osb->fs_generation); in ocfs2_populate_inode()
405 struct ocfs2_super *osb; in ocfs2_read_locked_inode() local
413 osb = OCFS2_SB(sb); in ocfs2_read_locked_inode()
446 && !ocfs2_mount_local(osb); in ocfs2_read_locked_inode()
459 generation = osb->fs_generation; in ocfs2_read_locked_inode()
503 status = ocfs2_read_blocks_sync(osb, args->fi_blkno, 1, &bh); in ocfs2_read_locked_inode()
511 osb->sb, bh); in ocfs2_read_locked_inode()
514 osb->sb, bh); in ocfs2_read_locked_inode()
517 osb->sb, bh); in ocfs2_read_locked_inode()
552 status = ocfs2_write_block(osb, bh, INODE_CACHE(inode)); in ocfs2_read_locked_inode()
578 static int ocfs2_truncate_for_delete(struct ocfs2_super *osb, in ocfs2_truncate_for_delete() argument
596 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_truncate_for_delete()
620 ocfs2_commit_trans(osb, handle); in ocfs2_truncate_for_delete()
623 status = ocfs2_commit_truncate(osb, inode, fe_bh); in ocfs2_truncate_for_delete()
630 ocfs2_commit_trans(osb, handle); in ocfs2_truncate_for_delete()
643 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode() local
647 ocfs2_get_system_file_inode(osb, INODE_ALLOC_SYSTEM_INODE, in ocfs2_remove_inode()
664 handle = ocfs2_start_trans(osb, OCFS2_DELETE_INODE_CREDITS + in ocfs2_remove_inode()
673 status = ocfs2_orphan_del(osb, handle, orphan_dir_inode, inode, in ocfs2_remove_inode()
702 ocfs2_commit_trans(osb, handle); in ocfs2_remove_inode()
719 static int ocfs2_check_orphan_recovery_state(struct ocfs2_super *osb, in ocfs2_check_orphan_recovery_state() argument
724 spin_lock(&osb->osb_lock); in ocfs2_check_orphan_recovery_state()
725 if (ocfs2_node_map_test_bit(osb, &osb->osb_recovering_orphan_dirs, slot)) { in ocfs2_check_orphan_recovery_state()
731 osb->osb_orphan_wipes[slot]++; in ocfs2_check_orphan_recovery_state()
733 spin_unlock(&osb->osb_lock); in ocfs2_check_orphan_recovery_state()
738 static void ocfs2_signal_wipe_completion(struct ocfs2_super *osb, in ocfs2_signal_wipe_completion() argument
741 spin_lock(&osb->osb_lock); in ocfs2_signal_wipe_completion()
742 osb->osb_orphan_wipes[slot]--; in ocfs2_signal_wipe_completion()
743 spin_unlock(&osb->osb_lock); in ocfs2_signal_wipe_completion()
745 wake_up(&osb->osb_wipe_event); in ocfs2_signal_wipe_completion()
754 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_wipe_inode() local
760 status = ocfs2_check_orphan_recovery_state(osb, orphaned_slot); in ocfs2_wipe_inode()
764 orphan_dir_inode = ocfs2_get_system_file_inode(osb, in ocfs2_wipe_inode()
790 status = ocfs2_truncate_for_delete(osb, inode, di_bh); in ocfs2_wipe_inode()
832 ocfs2_signal_wipe_completion(osb, orphaned_slot); in ocfs2_wipe_inode()
843 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_inode_is_valid_to_delete() local
845 trace_ocfs2_inode_is_valid_to_delete(current, osb->dc_task, in ocfs2_inode_is_valid_to_delete()
851 if (inode == osb->root_inode) { in ocfs2_inode_is_valid_to_delete()
863 if (current == osb->dc_task) in ocfs2_inode_is_valid_to_delete()
1114 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_clear_inode() local
1120 mlog_bug_on_msg(osb == NULL, in ocfs2_clear_inode()
1131 ocfs2_mark_lockres_freeing(osb, &oi->ip_rw_lockres); in ocfs2_clear_inode()
1132 ocfs2_mark_lockres_freeing(osb, &oi->ip_inode_lockres); in ocfs2_clear_inode()
1133 ocfs2_mark_lockres_freeing(osb, &oi->ip_open_lockres); in ocfs2_clear_inode()
1135 ocfs2_resv_discard(&osb->osb_la_resmap, in ocfs2_clear_inode()
1208 jbd2_journal_release_jbd_inode(osb->journal->j_journal, in ocfs2_clear_inode()