commit | 00d098822fe215a2f4fd32f244a9055b0b043bfe | [log] [tgz] |
---|---|---|
author | Tao Ma <boyu.mt@taobao.com> | Mon May 09 10:26:41 2011 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon May 09 10:26:41 2011 -0400 |
tree | e111dd4a9eb65cfc862186315e89220b692ddf83 | |
parent | e8bbe8c401c61408ea226b33b824f231c8f9ccae [diff] |
ext4: use s_inodes_per_block directly in __ext4_get_inode_loc In __ext4_get_inode_loc, we calculate inodes_per_block every time by EXT4_BLOCK_SIZE(sb) / EXT4_INODE_SIZE(sb). AFAICS, this function is a hot path for ext4, so we'd better use s_inodes_per_block directly instead of calculating every time. Signed-off-by: Tao Ma <boyu.mt@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>