commit | 1da5ef707904cf99300a0fb36b9ae3b29dbc8bde | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Sat Jun 04 10:20:47 2011 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Sat Jun 04 17:43:10 2011 -0400 |
tree | 4df7edba6286ccfc9f78aabc4ea506179913d9ad | |
parent | ae9e37cd114385764864518057ff854b3f335440 [diff] |
libext2fs: change fs->clustersize to fs->cluster_ratio_bits The log2 of the ratio of cluster size to block size is far more useful than just storing the cluster size. So make this change, and then define basic utility macros: EXT2FS_CLUSTER_RATIO(), EXT2FS_CLUSTER_MASK(), EXT2FS_B2C(), EXT2FS_C2B(), and EXT2FS_NUM_B2C(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>