From b2f4e7d704a37655a845af180df5b0d486cf78c4 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Sep 2013 13:44:08 +0200 Subject: Fix test for block compression * ext2fs/dir.c (dirscanblock): Test ds->stat against LOOKING and COMPRESS, instead of ds->type. --- ext2fs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext2fs/dir.c b/ext2fs/dir.c index a291436e..c0752466 100644 --- a/ext2fs/dir.c +++ b/ext2fs/dir.c @@ -465,8 +465,8 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx, } if (consider_compress - && (ds->type == LOOKUP - || (ds->type == COMPRESS && ds->nbytes > nbytes))) + && (ds->stat == LOOKING + || (ds->stat == COMPRESS && ds->nbytes > nbytes))) { ds->type = CREATE; ds->stat = COMPRESS; -- cgit v1.2.3