diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 13:44:08 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 13:44:08 +0200 |
commit | b2f4e7d704a37655a845af180df5b0d486cf78c4 (patch) | |
tree | 313dabe370489366047473eb1885446bac850a1d | |
parent | be059c77bf2042d7f32dd55aebd1bac662c5e7fd (diff) |
Fix test for block compression
* ext2fs/dir.c (dirscanblock): Test ds->stat against LOOKING and COMPRESS,
instead of ds->type.
-rw-r--r-- | ext2fs/dir.c | 4 |
1 files 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; |