patch-pre2.0.6 linux/fs/buffer.c

Next file: linux/fs/isofs/rock.c
Previous file: linux/fs/affs/symlink.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.5/linux/fs/buffer.c linux/fs/buffer.c
@@ -1270,6 +1270,8 @@
            deemed complete once all buffers have been visited
            (b_count==0) and are now unlocked. */
 	bh->b_count--;
+	if (!test_bit(BH_Uptodate, &bh->b_state))
+		set_bit(PG_error, &page->flags);
 	for (tmp = bh; tmp=tmp->b_this_page, tmp!=bh; ) {
 		if (test_bit(BH_Lock, &tmp->b_state) || tmp->b_count)
 			return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this