logic error in XFS
Yet another misplaced ! by the looks..
Dave
fs/xfs/xfs_log_recover.c +1 -1
@@ -1553,7 +1553,7 @@ xlog_recover_reorder_trans(case XFS_LI_BUF :case XFS_LI_6_1_BUF :case XFS_LI_5_3_BUF : -if ((!flags &XFS_BLI_CANCEL )) { +if (!(flags &XFS_BLI_CANCEL )) {xlog_recover_insert_item_frontq (&trans->r_itemq, itemq);break ;
Quoted 1 line · [email protected] writes:
Yet another misplaced ! by the looks..
Sure looks like it. When is this code encountered?
Quoted 12 lines
diff -urpN --exclude-from=/home/davej/.exclude
bk-linus/fs/xfs/xfs_log_recover.clinux-2.5/fs/xfs/xfs_log_recover.cfs/xfs/xfs_log_recover.c +1
-1@@ -1553,7 +1553,7 @@ xlog_recover_reorder_trans(case XFS_LI_BUF :case XFS_LI_6_1_BUF :case XFS_LI_5_3_BUF : -if ((!flags &XFS_BLI_CANCEL )) { +if (!(flags &XFS_BLI_CANCEL )) {xlog_recover_insert_item_frontq (&trans->r_itemq, itemq);break ;
Signature · 2 lines
Måns Rullgård [email protected]
Quoted 11 lines · Måns Rullgård
Quoted 3 lines · [email protected] writes:
Yet another misplaced ! by the looks..
Sure looks like it. When is this code encountered?
File system recovery, it is going to insert buffer items out of order in the recovery sequence which means replay could be out of order. Its been there since around September by the look of it. Definitely should be the other way around. Thanks Dave.
Steve
Quoted 19 lines
Quoted 16 lines
diff -urpN --exclude-from=/home/davej/.exclude
bk-linus/fs/xfs/xfs_log_recover.clinux-2.5/fs/xfs/xfs_log_recover.cfs/xfs/xfs_log_recover.c +1
-1@@ -1553,7 +1553,7 @@ xlog_recover_reorder_trans(case XFS_LI_BUF :case XFS_LI_6_1_BUF :case XFS_LI_5_3_BUF : -if ((!flags &XFS_BLI_CANCEL )) { +if (!(flags &XFS_BLI_CANCEL )) {xlog_recover_insert_item_frontq (&trans->r_itemq, itemq);break ;
Signature · 1 line
Steve Lord <[email protected]> Tel: 952-882-0619
Quoted 2 lines · On Fri, Jan 23, 2004 at 06:35:25AM +0000, [email protected] wrote:
Yet another misplaced ! by the looks..
Thanks Dave, your fix looks good to me too. Marcelo, this affects 2.4 too - please apply this patch.
thanks.
Quoted 12 lines
diff -urpN --exclude-from=/home/davej/.exclude
bk-linus/fs/xfs/xfs_log_recover.clinux-2.5/fs/xfs/xfs_log_recover.cfs/xfs/xfs_log_recover.c +1
-1@@ -1553,7 +1553,7 @@ xlog_recover_reorder_trans(case XFS_LI_BUF :case XFS_LI_6_1_BUF :case XFS_LI_5_3_BUF : -if ((!flags &XFS_BLI_CANCEL )) { +if (!(flags &XFS_BLI_CANCEL )) {xlog_recover_insert_item_frontq (&trans->r_itemq, itemq);break ;
Signature · 1 line
Nathan