commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 17/36: Fix test for block compression


From: Samuel Thibault
Subject: [hurd] 17/36: Fix test for block compression
Date: Tue, 24 Sep 2013 12:31:16 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit b2f4e7d704a37655a845af180df5b0d486cf78c4
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 21 13:44:08 2013 +0200

    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 a291436..c075246 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]