]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: find the group descriptors on a 1k-block bigalloc,meta_bg filesystem
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 May 2014 14:06:27 +0000 (10:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 May 2014 14:06:27 +0000 (10:06 -0400)
commitea9e3ca1d8206ff194c0909043a7f5cb9bbcef25
tree0ed548caaaacd22a93dbf018768e6497e3df7b34
parent231bd51476c491436f8d079133c71e4fed2de44b
ext4: find the group descriptors on a 1k-block bigalloc,meta_bg filesystem

On a filesystem with a 1k block size, the group descriptors live in
block 2, not block 1.  If the filesystem has bigalloc,meta_bg set,
however, the calculation of the group descriptor table location does
not take this into account and returns the wrong block number.  Fix
the calculation to return the correct value for this case.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c