patch-1.3.45 linux/fs/xiafs/file.c
Next file: linux/fs/xiafs/fsync.c
Previous file: linux/fs/xiafs/bitmap.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Sun Nov 26 19:23:10 1995
- Orig file:
v1.3.44/linux/fs/xiafs/file.c
- Orig date:
Thu Nov 9 11:23:52 1995
diff -u --recursive --new-file v1.3.44/linux/fs/xiafs/file.c linux/fs/xiafs/file.c
@@ -118,7 +118,7 @@
uptodate = 1;
while (zones--) {
*bhb = xiafs_getblk(inode, zone_nr++, 0);
- if (*bhb && !(*bhb)->b_uptodate) {
+ if (*bhb && !buffer_uptodate(*bhb)) {
uptodate = 0;
bhreq[bhrequest++] = *bhb;
}
@@ -141,7 +141,7 @@
do { /* Finish off all I/O that has actually completed */
if (*bhe) {
wait_on_buffer(*bhe);
- if (!(*bhe)->b_uptodate) { /* read error? */
+ if (!buffer_uptodate(*bhe)) { /* read error? */
brelse(*bhe);
if (++bhe == &buflist[NBUF])
bhe = buflist;
@@ -167,7 +167,7 @@
offset = 0;
if (++bhe == &buflist[NBUF])
bhe = buflist;
- } while (left > 0 && bhe != bhb && (!*bhe || !(*bhe)->b_lock));
+ } while (left > 0 && bhe != bhb && (!*bhe || !buffer_locked(*bhe)));
} while (left > 0);
/* Release the read-ahead blocks */
@@ -221,10 +221,10 @@
c = XIAFS_ZSIZE(inode->i_sb) - (pos & (XIAFS_ZSIZE(inode->i_sb) - 1));
if (c > count-written)
c = count-written;
- if (c != XIAFS_ZSIZE(inode->i_sb) && !bh->b_uptodate) {
+ if (c != XIAFS_ZSIZE(inode->i_sb) && !buffer_uptodate(bh)) {
ll_rw_block(READ, 1, &bh);
wait_on_buffer(bh);
- if (!bh->b_uptodate) {
+ if (!buffer_uptodate(bh)) {
brelse(bh);
if (!written)
written = -EIO;
@@ -240,7 +240,7 @@
written += c;
memcpy_fromfs(cp,buf,c);
buf += c;
- bh->b_uptodate = 1;
+ mark_buffer_uptodate(bh, 1);
mark_buffer_dirty(bh, 0);
brelse(bh);
}
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