patch-1.3.45 linux/fs/ext/inode.c
Next file: linux/fs/ext2/balloc.c
Previous file: linux/fs/ext/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/ext/inode.c
- Orig date:
Fri Nov 17 08:42:27 1995
diff -u --recursive --new-file v1.3.44/linux/fs/ext/inode.c linux/fs/ext/inode.c
@@ -268,10 +268,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;
}
@@ -346,11 +346,11 @@
struct buffer_head * bh;
bh = ext_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;
@@ -433,11 +433,11 @@
struct buffer_head *bh;
bh = ext_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 ext 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