]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: extent macros cleanup
authorDmitry Monakhov <dmonakhov@sw.ru>
Wed, 18 Jul 2007 13:09:15 +0000 (09:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Jul 2007 13:09:15 +0000 (09:09 -0400)
commitdb692913046b3c088463ad193c2e9e4d946f3f3c
tree8c7cb3c756102e201025086205bd148a5bcc6904
parent094adb1649999921d2a7163b6747b58f584be4ee
ext4: extent macros cleanup

Use the EXT_LAST_INDEX macro; that's what it's there for.

Clean up ext4_ext_ext_grow_indepth() so the correct EXT_FIRST_INDEX or
EXT_FIRST_MACRO is used as necessary.  The two macros are equivalent, so
the C will collapse the if statement out, but it makes the code much
more readable.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Acked-by: Alex Tomas <alex@clusterfs.com>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Singed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c