patch-1.3.45 linux/fs/minix/inode.c
Next file: linux/fs/msdos/buffer.c
Previous file: linux/fs/minix/fsync.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Sun Nov 26 19:23:10 1995
- Orig file:
v1.3.44/linux/fs/minix/inode.c
- Orig date:
Thu Nov 9 11:23:51 1995
diff -u --recursive --new-file v1.3.44/linux/fs/minix/inode.c linux/fs/minix/inode.c
@@ -321,10 +321,10 @@
if (!bh)
return NULL;
- if (!bh->b_uptodate) {
+ if (!buffer_uptodate(bh)) {
ll_rw_block(READ, 1, &bh);
wait_on_buffer(bh);
- if (!bh->b_uptodate) {
+ if (!buffer_uptodate(bh)) {
brelse(bh);
return NULL;
}
@@ -392,11 +392,11 @@
struct buffer_head * bh;
bh = minix_getblk(inode,block,create);
- if (!bh || bh->b_uptodate)
+ if (!bh || buffer_uptodate(bh))
return bh;
ll_rw_block(READ, 1, &bh);
wait_on_buffer(bh);
- if (bh->b_uptodate)
+ if (buffer_uptodate(bh))
return bh;
brelse(bh);
return NULL;
@@ -504,11 +504,11 @@
struct buffer_head *bh;
bh = minix_update_inode(inode);
- if (bh && bh->b_dirt)
+ if (bh && buffer_dirty(bh))
{
ll_rw_block(WRITE, 1, &bh);
wait_on_buffer(bh);
- if (bh->b_req && !bh->b_uptodate)
+ if (buffer_req(bh) && !buffer_uptodate(bh))
{
printk ("IO error syncing minix inode ["
"%s:%08lx]\n",
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