Lines Matching defs:clusters
431 * How many clusters in our truncate log.
716 u32 clusters)
721 return (u64)clusters << c_to_b_bits;
747 unsigned int clusters;
750 /* OCFS2 just cannot have enough clusters to overflow this */
751 clusters = (unsigned int)(bytes >> cl_bits);
753 return clusters;
760 unsigned int clusters;
762 clusters = (unsigned int)(bytes >> cl_bits);
763 return clusters;
774 u32 clusters)
776 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits;
783 unsigned int clusters;
785 clusters = ocfs2_blocks_to_clusters(sb, blocks);
786 return (u64)clusters << bits;
793 unsigned int clusters;
795 clusters = ocfs2_clusters_for_bytes(sb, bytes);
796 return (u64)clusters << cl_bits;
816 u32 clusters = pg_index;
820 clusters = pg_index << (PAGE_SHIFT - cbits);
822 clusters = pg_index >> (cbits - PAGE_SHIFT);
824 return clusters;
828 * Find the 1st page index which covers the given clusters.
831 u32 clusters)
834 pgoff_t index = clusters;
837 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits);
839 index = (pgoff_t)clusters << (cbits - PAGE_SHIFT);
865 unsigned int clusters)
867 return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits);