summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:41:03 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:41:03 +0200
commitbe059c77bf2042d7f32dd55aebd1bac662c5e7fd (patch)
treedf8ec73bfac2504da5843bbc9026fc4516cd4e53
parent5f9c778164aff5bd79779b7ea4b54a9135335a94 (diff)
Fix gcc warning
* ext2fs/dir.c (dirscanblock): Test ds->type against LOOKUP instead of LOOKING. They happened to have the same value.
-rw-r--r--ext2fs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index 3a3e648d..a291436e 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -465,7 +465,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx,
}
if (consider_compress
- && (ds->type == LOOKING
+ && (ds->type == LOOKUP
|| (ds->type == COMPRESS && ds->nbytes > nbytes)))
{
ds->type = CREATE;