Lines Matching refs:osb
87 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_free_file_private() local
90 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private()
183 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_sync_file() local
185 journal_t *journal = osb->journal->j_journal; in ocfs2_sync_file()
196 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_sync_file()
224 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_should_update_atime() local
226 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_should_update_atime()
257 if ((now.tv_sec - inode->i_atime.tv_sec <= osb->s_atime_quantum)) in ocfs2_should_update_atime()
267 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_update_inode_atime() local
271 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_update_inode_atime()
328 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_simple_size_update() local
331 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_simple_size_update()
344 ocfs2_commit_trans(osb, handle); in ocfs2_simple_size_update()
382 static int ocfs2_orphan_for_truncate(struct ocfs2_super *osb, in ocfs2_orphan_for_truncate() argument
406 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_orphan_for_truncate()
443 ocfs2_commit_trans(osb, handle); in ocfs2_orphan_for_truncate()
454 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_file() local
483 ocfs2_resv_discard(&osb->osb_la_resmap, in ocfs2_truncate_file()
509 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
515 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
542 int ocfs2_add_inode_data(struct ocfs2_super *osb, in ocfs2_add_inode_data() argument
577 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_extend_allocation() local
585 BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb)); in __ocfs2_extend_allocation()
605 credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list); in __ocfs2_extend_allocation()
606 handle = ocfs2_start_trans(osb, credits); in __ocfs2_extend_allocation()
622 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in __ocfs2_extend_allocation()
639 status = ocfs2_add_inode_data(osb, in __ocfs2_extend_allocation()
662 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in __ocfs2_extend_allocation()
693 ocfs2_clusters_to_bytes(osb->sb, clusters_to_add)); in __ocfs2_extend_allocation()
695 ocfs2_commit_trans(osb, handle); in __ocfs2_extend_allocation()
730 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_start_ordered_transaction() local
737 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_start_ordered_transaction()
759 ocfs2_commit_trans(osb, handle); in ocfs2_zero_start_ordered_transaction()
1136 struct ocfs2_super *osb = OCFS2_SB(sb); in ocfs2_setattr() local
1234 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS + in ocfs2_setattr()
1245 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_setattr()
1261 ocfs2_commit_trans(osb, handle); in ocfs2_setattr()
1294 struct ocfs2_super *osb = sb->s_fs_info; in ocfs2_getattr() local
1307 stat->blksize = osb->s_clustersize; in ocfs2_getattr()
1339 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_write_remove_suid() local
1346 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_write_remove_suid()
1371 ocfs2_commit_trans(osb, handle); in __ocfs2_write_remove_suid()
1521 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_truncate_cluster_pages() local
1527 end = end & ~(osb->s_clustersize - 1); in ocfs2_truncate_cluster_pages()
1540 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_zero_partial_clusters() local
1541 unsigned int csize = osb->s_clustersize; in ocfs2_zero_partial_clusters()
1563 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_zero_partial_clusters()
1573 tmpend = (u64)osb->s_clustersize + (start & ~(osb->s_clustersize - 1)); in ocfs2_zero_partial_clusters()
1590 start = end & ~(osb->s_clustersize - 1); in ocfs2_zero_partial_clusters()
1601 ocfs2_commit_trans(osb, handle); in ocfs2_zero_partial_clusters()
1693 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_inode_range() local
1753 trunc_start = ocfs2_clusters_for_bytes(osb->sb, byte_start); in ocfs2_remove_inode_range()
1754 trunc_end = (byte_start + byte_len) >> osb->s_clustersize_bits; in ocfs2_remove_inode_range()
1842 ocfs2_schedule_truncate_log_flush(osb, 1); in ocfs2_remove_inode_range()
1843 ocfs2_run_deallocs(osb, &dealloc); in ocfs2_remove_inode_range()
1859 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_change_file_space() local
1864 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in __ocfs2_change_file_space()
1959 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in __ocfs2_change_file_space()
1977 ocfs2_commit_trans(osb, handle); in __ocfs2_change_file_space()
1994 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_change_file_space() local
1998 !ocfs2_writes_unwritten_extents(osb)) in ocfs2_change_file_space()
2001 !ocfs2_sparse_alloc(osb)) in ocfs2_change_file_space()
2022 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_fallocate() local
2029 if (!ocfs2_writes_unwritten_extents(osb)) in ocfs2_fallocate()
2133 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_prepare_inode_for_write() local
2134 int full_coherency = !(osb->s_mount_opt & in ocfs2_prepare_inode_for_write()
2226 !ocfs2_supports_append_dio(osb)) { in ocfs2_prepare_inode_for_write()
2244 if (!ocfs2_supports_append_dio(osb)) in ocfs2_prepare_inode_for_write()
2274 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_file_write_iter() local
2275 int full_coherency = !(osb->s_mount_opt & in ocfs2_file_write_iter()
2408 ret = jbd2_journal_force_commit(osb->journal->j_journal); in ocfs2_file_write_iter()