patch-1.3.45 linux/fs/minix/bitmap.c

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

diff -u --recursive --new-file v1.3.44/linux/fs/minix/bitmap.c linux/fs/minix/bitmap.c
@@ -59,7 +59,7 @@
 	}
 	bh = get_hash_table(sb->s_dev,block,BLOCK_SIZE);
 	if (bh)
-		bh->b_dirt=0;
+		clear_bit(BH_Dirty, &bh->b_state);
 	brelse(bh);
 	zone = block - sb->u.minix_sb.s_firstdatazone + 1;
 	bit = zone & 8191;
@@ -107,7 +107,7 @@
 		return 0;
 	}
 	memset(bh->b_data, 0, BLOCK_SIZE);
-	bh->b_uptodate = 1;
+	mark_buffer_uptodate(bh, 1);
 	mark_buffer_dirty(bh, 1);
 	brelse(bh);
 	return j;

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