[Debian-ha-commits] [ocfs2-tools] 30/58: fsck.ocfs2: fix the mistake of clearing valid flag in o2fsck_check_blocks()

Valentin Vidic vvidic-guest at moszumanska.debian.org
Tue Jun 20 13:40:42 UTC 2017


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

vvidic-guest pushed a commit to branch upstream
in repository ocfs2-tools.

commit 41be6a02c9d6b0fd69faa8c1997e833cd08c004d
Author: Jun Piao <piaojun at huawei.com>
Date:   Tue Oct 11 19:16:56 2016 +0800

    fsck.ocfs2: fix the mistake of clearing valid flag in o2fsck_check_blocks()
    
    We need use ~OCFS2_VALID_FL rather than !OCFS2_VALID_FL to clear
    'di->i_flags'.
    
    Signed-off-by: Jun Piao <piaojun at huawei.com>
    Reviewed-by: Joseph Qi <joseph.qi at huawei.com>
---
 fsck.ocfs2/pass1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsck.ocfs2/pass1.c b/fsck.ocfs2/pass1.c
index c076e28..add3998 100644
--- a/fsck.ocfs2/pass1.c
+++ b/fsck.ocfs2/pass1.c
@@ -952,7 +952,7 @@ static errcode_t o2fsck_check_blocks(ocfs2_filesys *fs, o2fsck_state *ost,
 		ret = ocfs2_block_iterate_inode(fs, di,
 					        OCFS2_BLOCK_FLAG_APPEND,
 						clear_block, &vb);
-		di->i_flags &= !OCFS2_VALID_FL;
+		di->i_flags &= ~OCFS2_VALID_FL;
 		o2fsck_write_inode(ost, di->i_blkno, di);
 		/* for a directory, we also need to clear it 
 		 * from the dir_parent rb-tree. */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list