diff options
Diffstat (limited to 'fs/ocfs2/ocfs2.h')
-rw-r--r-- | fs/ocfs2/ocfs2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ocfs2/ocfs2.h b/fs/ocfs2/ocfs2.h index 9552560df6cd..e98c954cf961 100644 --- a/fs/ocfs2/ocfs2.h +++ b/fs/ocfs2/ocfs2.h | |||
@@ -768,6 +768,12 @@ static inline unsigned int ocfs2_megabytes_to_clusters(struct super_block *sb, | |||
768 | return megs << (20 - OCFS2_SB(sb)->s_clustersize_bits); | 768 | return megs << (20 - OCFS2_SB(sb)->s_clustersize_bits); |
769 | } | 769 | } |
770 | 770 | ||
771 | static inline unsigned int ocfs2_clusters_to_megabytes(struct super_block *sb, | ||
772 | unsigned int clusters) | ||
773 | { | ||
774 | return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits); | ||
775 | } | ||
776 | |||
771 | static inline void _ocfs2_set_bit(unsigned int bit, unsigned long *bitmap) | 777 | static inline void _ocfs2_set_bit(unsigned int bit, unsigned long *bitmap) |
772 | { | 778 | { |
773 | ext2_set_bit(bit, bitmap); | 779 | ext2_set_bit(bit, bitmap); |