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()
247 if ((now.tv_sec - inode_get_atime_sec(inode) <= osb->s_atime_quantum)) in ocfs2_should_update_atime()
257 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() local
261 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
287 ocfs2_commit_trans(osb, handle); in ocfs2_update_inode_atime()
318 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() local
321 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_simple_size_update()
334 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
372 static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb, in ocfs2_orphan_for_truncate() argument
396 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_orphan_for_truncate()
433 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
444 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() local
473 ocfs2_resv_discard(&osb->osb_la_resmap, in ocfs2_truncate_file()
500 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
509 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
536 int ocfs2_add_inode_data(struct ocfs2_super *osb, in ocfs2_add_inode_data() argument
568 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_extend_allocation() local
576 BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb)); in ocfs2_extend_allocation()
596 credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list); in ocfs2_extend_allocation()
597 handle = ocfs2_start_trans(osb, credits); in ocfs2_extend_allocation()
613 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in ocfs2_extend_allocation()
630 status = ocfs2_add_inode_data(osb, in ocfs2_extend_allocation()
653 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in ocfs2_extend_allocation()
684 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in ocfs2_extend_allocation()
686 ocfs2_commit_trans(osb, handle); in ocfs2_extend_allocation()
716 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_start_ordered_transaction() local
723 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_start_ordered_transaction()
745 ocfs2_commit_trans(osb, handle); in ocfs2_zero_start_ordered_transaction()
1121 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_setattr() local
1251 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS + in ocfs2_setattr()
1263 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_setattr()
1279 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1313 struct ocfs2_super *osb = sb->s_fs_info; in ocfs2_getattr() local
1334 stat->blksize = osb->s_clustersize; in ocfs2_getattr()
1378 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_write_remove_suid() local
1385 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_write_remove_suid()
1410 ocfs2_commit_trans(osb, handle); in __ocfs2_write_remove_suid()
1522 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_cluster_pages() local
1528 end = end & ~(osb->s_clustersize - 1); in ocfs2_truncate_cluster_pages()
1581 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_partial_clusters() local
1582 unsigned int csize = osb->s_clustersize; in ocfs2_zero_partial_clusters()
1625 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_partial_clusters()
1644 tmpend = (u64)osb->s_clustersize + in ocfs2_zero_partial_clusters()
1645 (start & ~(osb->s_clustersize - 1)); in ocfs2_zero_partial_clusters()
1665 start = end & ~(osb->s_clustersize - 1); in ocfs2_zero_partial_clusters()
1676 ocfs2_commit_trans(osb, handle); in ocfs2_zero_partial_clusters()
1768 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode_range() local
1835 trunc_start = ocfs2_clusters_for_bytes(osb->sb, byte_start); in ocfs2_remove_inode_range()
1836 trunc_end = (byte_start + byte_len) >> osb->s_clustersize_bits; in ocfs2_remove_inode_range()
1924 ocfs2_schedule_truncate_log_flush(osb, 1); in ocfs2_remove_inode_range()
1925 ocfs2_run_deallocs(osb, &dealloc); in ocfs2_remove_inode_range()
1941 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_change_file_space() local
1946 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in __ocfs2_change_file_space()
2052 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_change_file_space()
2067 ocfs2_commit_trans(osb, handle); in __ocfs2_change_file_space()
2084 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_change_file_space() local
2088 !ocfs2_writes_unwritten_extents(osb)) in ocfs2_change_file_space()
2091 !ocfs2_sparse_alloc(osb)) in ocfs2_change_file_space()
2112 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fallocate() local
2120 if (!ocfs2_writes_unwritten_extents(osb)) in ocfs2_fallocate()
2374 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_file_write_iter() local
2375 int full_coherency = !(osb->s_mount_opt & in ocfs2_file_write_iter()
2498 ret = jbd2_journal_force_commit(osb->journal->j_journal); in ocfs2_file_write_iter()
2700 struct ocfs2_super *osb = OCFS2_SB(inode_in->i_sb); in ocfs2_remap_file_range() local
2708 if (!ocfs2_refcount_tree(osb)) in ocfs2_remap_file_range()
2710 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_remap_file_range()