Lines Matching refs:clusters
433 * How many clusters in our truncate log.
719 u32 clusters)
724 return (u64)clusters << c_to_b_bits;
750 unsigned int clusters;
753 /* OCFS2 just cannot have enough clusters to overflow this */
754 clusters = (unsigned int)(bytes >> cl_bits);
756 return clusters;
763 unsigned int clusters;
765 clusters = (unsigned int)(bytes >> cl_bits);
766 return clusters;
777 u32 clusters)
779 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits;
786 unsigned int clusters;
788 clusters = ocfs2_blocks_to_clusters(sb, blocks);
789 return (u64)clusters << bits;
796 unsigned int clusters;
798 clusters = ocfs2_clusters_for_bytes(sb, bytes);
799 return (u64)clusters << cl_bits;
819 u32 clusters = pg_index;
823 clusters = pg_index << (PAGE_SHIFT - cbits);
825 clusters = pg_index >> (cbits - PAGE_SHIFT);
827 return clusters;
831 * Find the 1st page index which covers the given clusters.
834 u32 clusters)
837 pgoff_t index = clusters;
840 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits);
842 index = (pgoff_t)clusters << (cbits - PAGE_SHIFT);
868 unsigned int clusters)
870 return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits);