Lines Matching defs:clusters
654 u32 clusters)
659 return (u64)clusters << c_to_b_bits;
675 unsigned int clusters;
678 /* OCFS2 just cannot have enough clusters to overflow this */
679 clusters = (unsigned int)(bytes >> cl_bits);
681 return clusters;
692 u32 clusters)
694 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits;
701 unsigned int clusters;
703 clusters = ocfs2_blocks_to_clusters(sb, blocks);
704 return (u64)clusters << bits;
711 unsigned int clusters;
713 clusters = ocfs2_clusters_for_bytes(sb, bytes);
714 return (u64)clusters << cl_bits;
734 u32 clusters = pg_index;
738 clusters = pg_index << (PAGE_CACHE_SHIFT - cbits);
740 clusters = pg_index >> (cbits - PAGE_CACHE_SHIFT);
742 return clusters;
746 * Find the 1st page index which covers the given clusters.
749 u32 clusters)
752 pgoff_t index = clusters;
755 index = (pgoff_t)clusters >> (PAGE_CACHE_SHIFT - cbits);
757 index = (pgoff_t)clusters << (cbits - PAGE_CACHE_SHIFT);
783 unsigned int clusters)
785 return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits);