Re: [PATCH 1/1] ext4: fix ext4_get_group_number() at cluster boundaries

2013-07-11 Thread Theodore Ts'o
On Thu, Jul 11, 2013 at 12:28:48PM +0100, Andy Whitcroft wrote: > Commit bd86298e60b8 introduced a new optimisation for callers who needed > only the ext4 group number and not the block offset within. It hand > calculates the group number from the block in the common case, falling > back to the

[PATCH 1/1] ext4: fix ext4_get_group_number() at cluster boundaries

2013-07-11 Thread Andy Whitcroft
Commit bd86298e60b8 introduced a new optimisation for callers who needed only the ext4 group number and not the block offset within. It hand calculates the group number from the block in the common case, falling back to the original group offset implementation otherwise. Clearly the group number

[PATCH 1/1] ext4: fix ext4_get_group_number() at cluster boundaries

2013-07-11 Thread Andy Whitcroft
Commit bd86298e60b8 introduced a new optimisation for callers who needed only the ext4 group number and not the block offset within. It hand calculates the group number from the block in the common case, falling back to the original group offset implementation otherwise. Clearly the group number

Re: [PATCH 1/1] ext4: fix ext4_get_group_number() at cluster boundaries

2013-07-11 Thread Theodore Ts'o
On Thu, Jul 11, 2013 at 12:28:48PM +0100, Andy Whitcroft wrote: Commit bd86298e60b8 introduced a new optimisation for callers who needed only the ext4 group number and not the block offset within. It hand calculates the group number from the block in the common case, falling back to the