Lines Matching refs:osb

86 	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);  in ocfs2_free_file_private()  local
89 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private()
179 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() local
181 journal_t *journal = osb->journal->j_journal; in ocfs2_sync_file()
192 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_sync_file()
220 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() local
222 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_should_update_atime()
253 if ((now.tv_sec - inode->i_atime.tv_sec <= osb->s_atime_quantum)) in ocfs2_should_update_atime()
263 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() local
267 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
324 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() local
327 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_simple_size_update()
340 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
378 static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb, in ocfs2_orphan_for_truncate() argument
402 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_orphan_for_truncate()
439 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
450 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() local
479 ocfs2_resv_discard(&osb->osb_la_resmap, in ocfs2_truncate_file()
505 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
511 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
538 int ocfs2_add_inode_data(struct ocfs2_super *osb, in ocfs2_add_inode_data() argument
573 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_extend_allocation() local
581 BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb)); in __ocfs2_extend_allocation()
601 credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list); in __ocfs2_extend_allocation()
602 handle = ocfs2_start_trans(osb, credits); in __ocfs2_extend_allocation()
618 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in __ocfs2_extend_allocation()
635 status = ocfs2_add_inode_data(osb, in __ocfs2_extend_allocation()
658 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in __ocfs2_extend_allocation()
689 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in __ocfs2_extend_allocation()
691 ocfs2_commit_trans(osb, handle); in __ocfs2_extend_allocation()
726 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_start_ordered_transaction() local
733 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_start_ordered_transaction()
755 ocfs2_commit_trans(osb, handle); in ocfs2_zero_start_ordered_transaction()
1131 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_setattr() local
1225 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS + in ocfs2_setattr()
1236 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_setattr()
1252 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1280 struct ocfs2_super *osb = sb->s_fs_info; in ocfs2_getattr() local
1293 stat->blksize = osb->s_clustersize; in ocfs2_getattr()
1325 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_write_remove_suid() local
1332 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_write_remove_suid()
1357 ocfs2_commit_trans(osb, handle); in __ocfs2_write_remove_suid()
1507 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_cluster_pages() local
1513 end = end & ~(osb->s_clustersize - 1); in ocfs2_truncate_cluster_pages()
1526 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_partial_clusters() local
1527 unsigned int csize = osb->s_clustersize; in ocfs2_zero_partial_clusters()
1549 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_partial_clusters()
1559 tmpend = (u64)osb->s_clustersize + (start & ~(osb->s_clustersize - 1)); in ocfs2_zero_partial_clusters()
1576 start = end & ~(osb->s_clustersize - 1); in ocfs2_zero_partial_clusters()
1587 ocfs2_commit_trans(osb, handle); in ocfs2_zero_partial_clusters()
1679 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode_range() local
1739 trunc_start = ocfs2_clusters_for_bytes(osb->sb, byte_start); in ocfs2_remove_inode_range()
1740 trunc_end = (byte_start + byte_len) >> osb->s_clustersize_bits; in ocfs2_remove_inode_range()
1828 ocfs2_schedule_truncate_log_flush(osb, 1); in ocfs2_remove_inode_range()
1829 ocfs2_run_deallocs(osb, &dealloc); in ocfs2_remove_inode_range()
1845 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_change_file_space() local
1850 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in __ocfs2_change_file_space()
1945 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_change_file_space()
1963 ocfs2_commit_trans(osb, handle); in __ocfs2_change_file_space()
1980 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_change_file_space() local
1984 !ocfs2_writes_unwritten_extents(osb)) in ocfs2_change_file_space()
1987 !ocfs2_sparse_alloc(osb)) in ocfs2_change_file_space()
2008 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fallocate() local
2015 if (!ocfs2_writes_unwritten_extents(osb)) in ocfs2_fallocate()
2119 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_prepare_inode_for_write() local
2120 int full_coherency = !(osb->s_mount_opt & in ocfs2_prepare_inode_for_write()
2212 !ocfs2_supports_append_dio(osb)) { in ocfs2_prepare_inode_for_write()
2230 if (!ocfs2_supports_append_dio(osb)) in ocfs2_prepare_inode_for_write()
2262 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_file_write_iter() local
2263 int full_coherency = !(osb->s_mount_opt & in ocfs2_file_write_iter()
2396 ret = jbd2_journal_force_commit(osb->journal->j_journal); in ocfs2_file_write_iter()