Lines Matching refs:osb
48 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
83 buffer_cache_bh = sb_getblk(osb->sb, blkno);
141 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
178 if (create && p_blkno == 0 && ocfs2_sparse_alloc(osb)) {
190 if (!ocfs2_sparse_alloc(osb)) {
494 static void ocfs2_figure_cluster_boundaries(struct ocfs2_super *osb,
501 if (unlikely(PAGE_SHIFT > osb->s_clustersize_bits)) {
504 cpp = 1 << (PAGE_SHIFT - osb->s_clustersize_bits);
507 cluster_start = cluster_start << osb->s_clustersize_bits;
509 cluster_end = cluster_start + osb->s_clustersize;
530 struct ocfs2_super *osb, u32 cpos,
536 ocfs2_figure_cluster_boundaries(osb, cpos, &cluster_start, &cluster_end);
826 struct ocfs2_super *osb, loff_t pos,
837 wc->w_cpos = pos >> osb->s_clustersize_bits;
839 cend = (pos + len - 1) >> osb->s_clustersize_bits;
845 if (unlikely(PAGE_SHIFT > osb->s_clustersize_bits))
1211 struct ocfs2_super *osb = OCFS2_SB(mapping->host->i_sb);
1221 cluster_off = pos & (osb->s_clustersize - 1);
1222 if ((cluster_off + local_len) > osb->s_clustersize)
1223 local_len = osb->s_clustersize - cluster_off;
1250 static void ocfs2_set_target_boundaries(struct ocfs2_super *osb,
1280 ocfs2_figure_cluster_boundaries(osb,
1287 ocfs2_figure_cluster_boundaries(osb,
1460 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
1465 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS);
1475 ocfs2_commit_trans(osb, handle);
1491 ocfs2_commit_trans(osb, handle);
1503 ocfs2_commit_trans(osb, handle);
1639 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
1648 ret = ocfs2_alloc_write_ctxt(&wc, osb, pos, len, type, di_bh);
1654 if (ocfs2_supports_inline_data(osb)) {
1669 if (ocfs2_sparse_alloc(osb))
1753 ocfs2_set_target_boundaries(osb, wc, pos, len, cluster_of_pages);
1755 handle = ocfs2_start_trans(osb, credits);
1766 ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
1822 ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
1824 ocfs2_commit_trans(osb, handle);
1855 ret1 = ocfs2_try_to_free_truncate_log(osb, clusters_need);
1937 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2047 ocfs2_commit_trans(osb, handle);
2049 ocfs2_run_deallocs(osb, &wc->w_dealloc);
2123 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2136 len = osb->s_clustersize - (pos & (osb->s_clustersize - 1));
2190 ret = ocfs2_add_inode_to_orphan(osb, inode);
2207 if (ocfs2_sparse_alloc(osb))
2276 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2310 ret = ocfs2_del_inode_from_orphan(osb, inode, di_bh,
2335 handle = ocfs2_start_trans(osb, credits);
2370 ocfs2_commit_trans(osb, handle);
2380 ocfs2_run_deallocs(osb, &dealloc);
2425 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
2437 !ocfs2_supports_append_dio(osb))