Lines Matching refs:osb
48 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_symlink_get_block() local
83 buffer_cache_bh = sb_getblk(osb->sb, blkno); in ocfs2_symlink_get_block()
141 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_get_block() local
179 if (create && p_blkno == 0 && ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
191 if (!ocfs2_sparse_alloc(osb)) { in ocfs2_get_block()
506 static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb, in ocfs2_figure_cluster_boundaries() argument
513 if (unlikely(PAGE_SHIFT > osb->s_clustersize_bits)) { in ocfs2_figure_cluster_boundaries()
516 cpp = 1 << (PAGE_SHIFT - osb->s_clustersize_bits); in ocfs2_figure_cluster_boundaries()
519 cluster_start = cluster_start << osb->s_clustersize_bits; in ocfs2_figure_cluster_boundaries()
521 cluster_end = cluster_start + osb->s_clustersize; in ocfs2_figure_cluster_boundaries()
542 struct ocfs2_super *osb, u32 cpos, in ocfs2_clear_page_regions() argument
548 ocfs2_figure_cluster_boundaries(osb, cpos, &cluster_start, &cluster_end); in ocfs2_clear_page_regions()
838 struct ocfs2_super *osb, loff_t pos, in ocfs2_alloc_write_ctxt() argument
849 wc->w_cpos = pos >> osb->s_clustersize_bits; in ocfs2_alloc_write_ctxt()
851 cend = (pos + len - 1) >> osb->s_clustersize_bits; in ocfs2_alloc_write_ctxt()
857 if (unlikely(PAGE_SHIFT > osb->s_clustersize_bits)) in ocfs2_alloc_write_ctxt()
1228 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb); in ocfs2_write_cluster_by_desc() local
1238 cluster_off = pos & (osb->s_clustersize - 1); in ocfs2_write_cluster_by_desc()
1239 if ((cluster_off + local_len) > osb->s_clustersize) in ocfs2_write_cluster_by_desc()
1240 local_len = osb->s_clustersize - cluster_off; in ocfs2_write_cluster_by_desc()
1267 static void ocfs2_set_target_boundaries(struct ocfs2_super *osb, in ocfs2_set_target_boundaries() argument
1297 ocfs2_figure_cluster_boundaries(osb, in ocfs2_set_target_boundaries()
1304 ocfs2_figure_cluster_boundaries(osb, in ocfs2_set_target_boundaries()
1477 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_inline() local
1482 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_write_begin_inline()
1491 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline()
1506 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline()
1518 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_inline()
1655 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_begin_nolock() local
1664 ret = ocfs2_alloc_write_ctxt(&wc, osb, pos, len, type, di_bh); in ocfs2_write_begin_nolock()
1670 if (ocfs2_supports_inline_data(osb)) { in ocfs2_write_begin_nolock()
1685 if (ocfs2_sparse_alloc(osb)) in ocfs2_write_begin_nolock()
1769 ocfs2_set_target_boundaries(osb, wc, pos, len, cluster_of_pages); in ocfs2_write_begin_nolock()
1771 handle = ocfs2_start_trans(osb, credits); in ocfs2_write_begin_nolock()
1782 ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc)); in ocfs2_write_begin_nolock()
1838 ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc)); in ocfs2_write_begin_nolock()
1840 ocfs2_commit_trans(osb, handle); in ocfs2_write_begin_nolock()
1871 ret1 = ocfs2_try_to_free_truncate_log(osb, clusters_need); in ocfs2_write_begin_nolock()
1956 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_write_end_nolock() local
2054 ocfs2_commit_trans(osb, handle); in ocfs2_write_end_nolock()
2056 ocfs2_run_deallocs(osb, &wc->w_dealloc); in ocfs2_write_end_nolock()
2130 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_dio_wr_get_block() local
2143 len = osb->s_clustersize - (pos & (osb->s_clustersize - 1)); in ocfs2_dio_wr_get_block()
2197 ret = ocfs2_add_inode_to_orphan(osb, inode); in ocfs2_dio_wr_get_block()
2214 if (ocfs2_sparse_alloc(osb)) in ocfs2_dio_wr_get_block()
2285 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_dio_end_io_write() local
2319 ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh, in ocfs2_dio_end_io_write()
2344 handle = ocfs2_start_trans(osb, credits); in ocfs2_dio_end_io_write()
2374 ocfs2_commit_trans(osb, handle); in ocfs2_dio_end_io_write()
2384 ocfs2_run_deallocs(osb, &dealloc); in ocfs2_dio_end_io_write()
2429 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_direct_IO() local
2441 !ocfs2_supports_append_dio(osb)) in ocfs2_direct_IO()