From: Tao Ma Date: Mon, 9 May 2011 14:26:41 +0000 (-0400) Subject: ext4: use s_inodes_per_block directly in __ext4_get_inode_loc X-Git-Tag: v3.0-rc1~140^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00d098822fe215a2f4fd32f244a9055b0b043bfe;p=pandora-kernel.git 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 Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed