Whamcloud - gitweb
e2fsck: skip sorting extents if there are no valid extents
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Wed, 17 Nov 2021 16:50:15 +0000 (08:50 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 3 Dec 2021 19:56:18 +0000 (14:56 -0500)
commit54183fea07676d185b2c169c45a7c1adc7e3e26e
treee1868cd472f1f0f137a5baf316a468835d017776
parentece580372624113bf0ce9e291952801c2bb1884f
e2fsck: skip sorting extents if there are no valid extents

At the end of a fast commit replay, e2fsck tries merging extents in a
inode. This patch fixes a bug in this logic where we were continuing
this action even if there were no extents to merge resulting in
accessing illegal memory.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
e2fsck/journal.c