patch-1.3.45 linux/fs/sysv/fsync.c
Next file: linux/fs/sysv/inode.c
Previous file: linux/fs/sysv/file.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sun Nov 26 19:23:10 1995
- Orig file:
v1.3.44/linux/fs/sysv/fsync.c
- Orig date:
Thu Nov 9 11:23:51 1995
diff -u --recursive --new-file v1.3.44/linux/fs/sysv/fsync.c linux/fs/sysv/fsync.c
@@ -45,11 +45,11 @@
brelse (bh);
return 1;
}
- if (wait && bh->b_req && !bh->b_uptodate) {
+ if (wait && buffer_req(bh) && !buffer_uptodate(bh)) {
brelse(bh);
return -1;
}
- if (wait || !bh->b_uptodate || !bh->b_dirt) {
+ if (wait || !buffer_uptodate(bh) || !buffer_dirty(bh)) {
brelse(bh);
return 0;
}
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