Whamcloud - gitweb
libext2fs: speed up the max extent depth api call
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 15 Dec 2014 17:26:57 +0000 (12:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 15 Dec 2014 17:26:57 +0000 (12:26 -0500)
commit413b5c76d830ac780680c53861e0e954dbd99532
tree6a9f903cfeb01103064a93ae2f4a0cffd18d6bbe
parent8f7dee11811ba7fac833e1526e9224c7041c4b51
libext2fs: speed up the max extent depth api call

The maximum extent tree depth really only depends on the filesystem
block size, so cache the last result if possible.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/extent.c