Lines Matching refs:osb
71 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private() local
74 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private()
169 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() local
171 journal_t *journal = osb->journal->j_journal; in ocfs2_sync_file()
182 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_sync_file()
210 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() local
212 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_should_update_atime()
243 if ((now.tv_sec - inode->i_atime.tv_sec <= osb->s_atime_quantum)) in ocfs2_should_update_atime()
253 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() local
257 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
283 ocfs2_commit_trans(osb, handle); in ocfs2_update_inode_atime()
314 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() local
317 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_simple_size_update()
330 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
368 static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb, in ocfs2_orphan_for_truncate() argument
392 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_orphan_for_truncate()
429 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
440 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() local
469 ocfs2_resv_discard(&osb->osb_la_resmap, in ocfs2_truncate_file()
496 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
505 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
532 int ocfs2_add_inode_data(struct ocfs2_super *osb, in ocfs2_add_inode_data() argument
564 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_extend_allocation() local
572 BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb)); in ocfs2_extend_allocation()
592 credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list); in ocfs2_extend_allocation()
593 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_allocation()
609 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in ocfs2_extend_allocation()
626 status = ocfs2_add_inode_data(osb, in ocfs2_extend_allocation()
649 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in ocfs2_extend_allocation()
680 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in ocfs2_extend_allocation()
682 ocfs2_commit_trans(osb, handle); in ocfs2_extend_allocation()
712 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_start_ordered_transaction() local
719 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_start_ordered_transaction()
741 ocfs2_commit_trans(osb, handle); in ocfs2_zero_start_ordered_transaction()
1121 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_setattr() local
1248 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS + in ocfs2_setattr()
1260 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_setattr()
1276 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1310 struct ocfs2_super *osb = sb->s_fs_info; in ocfs2_getattr() local
1331 stat->blksize = osb->s_clustersize; in ocfs2_getattr()
1375 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_write_remove_suid() local
1382 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_write_remove_suid()
1407 ocfs2_commit_trans(osb, handle); in __ocfs2_write_remove_suid()
1519 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_cluster_pages() local
1525 end = end & ~(osb->s_clustersize - 1); in ocfs2_truncate_cluster_pages()
1578 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_partial_clusters() local
1579 unsigned int csize = osb->s_clustersize; in ocfs2_zero_partial_clusters()
1622 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_partial_clusters()
1641 tmpend = (u64)osb->s_clustersize + in ocfs2_zero_partial_clusters()
1642 (start & ~(osb->s_clustersize - 1)); in ocfs2_zero_partial_clusters()
1662 start = end & ~(osb->s_clustersize - 1); in ocfs2_zero_partial_clusters()
1673 ocfs2_commit_trans(osb, handle); in ocfs2_zero_partial_clusters()
1765 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode_range() local
1824 trunc_start = ocfs2_clusters_for_bytes(osb->sb, byte_start); in ocfs2_remove_inode_range()
1825 trunc_end = (byte_start + byte_len) >> osb->s_clustersize_bits; in ocfs2_remove_inode_range()
1913 ocfs2_schedule_truncate_log_flush(osb, 1); in ocfs2_remove_inode_range()
1914 ocfs2_run_deallocs(osb, &dealloc); in ocfs2_remove_inode_range()
1930 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_change_file_space() local
1935 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in __ocfs2_change_file_space()
2039 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_change_file_space()
2054 ocfs2_commit_trans(osb, handle); in __ocfs2_change_file_space()
2071 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_change_file_space() local
2075 !ocfs2_writes_unwritten_extents(osb)) in ocfs2_change_file_space()
2078 !ocfs2_sparse_alloc(osb)) in ocfs2_change_file_space()
2099 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fallocate() local
2106 if (!ocfs2_writes_unwritten_extents(osb)) in ocfs2_fallocate()
2355 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_file_write_iter() local
2356 int full_coherency = !(osb->s_mount_opt & in ocfs2_file_write_iter()
2477 ret = jbd2_journal_force_commit(osb->journal->j_journal); in ocfs2_file_write_iter()
2640 struct ocfs2_super *osb = OCFS2_SB(inode_in->i_sb); in ocfs2_remap_file_range() local
2648 if (!ocfs2_refcount_tree(osb)) in ocfs2_remap_file_range()
2650 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_remap_file_range()