diff options
author | phk <phk@FreeBSD.org> | 2004-03-11 18:02:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-11 18:02:36 +0000 |
commit | 2a5e157787a7e1d72f1b7fd7d1ecb1e91b9e5251 (patch) | |
tree | 24546ef169a9ce1a21318822c62c8a981c08e1a7 /sys/gnu | |
parent | 9ba3cede82df59c4fc45ffe6b8f44950eef74c6b (diff) | |
download | FreeBSD-src-2a5e157787a7e1d72f1b7fd7d1ecb1e91b9e5251.zip FreeBSD-src-2a5e157787a7e1d72f1b7fd7d1ecb1e91b9e5251.tar.gz |
Properly vector all bwrite() and BUF_WRITE() calls through the same path
and s/BUF_WRITE()/bwrite()/ since it now does the same as bwrite().
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/ext2fs/ext2_lookup.c | 8 | ||||
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_lookup.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/gnu/ext2fs/ext2_lookup.c b/sys/gnu/ext2fs/ext2_lookup.c index d1ffa28..887e744 100644 --- a/sys/gnu/ext2fs/ext2_lookup.c +++ b/sys/gnu/ext2fs/ext2_lookup.c @@ -900,7 +900,7 @@ ext2_direnter(ip, dvp, cnp) ep = (struct ext2_dir_entry_2 *)((char *)ep + dsize); } bcopy((caddr_t)&newdir, (caddr_t)ep, (u_int)newentrysize); - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; if (!error && dp->i_endoff && dp->i_endoff < dp->i_size) error = ext2_truncate(dvp, (off_t)dp->i_endoff, IO_SYNC, @@ -940,7 +940,7 @@ ext2_dirremove(dvp, cnp) &bp)) != 0) return (error); ep->inode = 0; - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; return (error); } @@ -951,7 +951,7 @@ ext2_dirremove(dvp, cnp) (char **)&ep, &bp)) != 0) return (error); ep->rec_len += dp->i_reclen; - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; return (error); } @@ -980,7 +980,7 @@ ext2_dirrewrite(dp, ip, cnp) ep->file_type = DTTOFT(IFTODT(ip->i_mode)); else ep->file_type = EXT2_FT_UNKNOWN; - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; return (error); } diff --git a/sys/gnu/fs/ext2fs/ext2_lookup.c b/sys/gnu/fs/ext2fs/ext2_lookup.c index d1ffa28..887e744 100644 --- a/sys/gnu/fs/ext2fs/ext2_lookup.c +++ b/sys/gnu/fs/ext2fs/ext2_lookup.c @@ -900,7 +900,7 @@ ext2_direnter(ip, dvp, cnp) ep = (struct ext2_dir_entry_2 *)((char *)ep + dsize); } bcopy((caddr_t)&newdir, (caddr_t)ep, (u_int)newentrysize); - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; if (!error && dp->i_endoff && dp->i_endoff < dp->i_size) error = ext2_truncate(dvp, (off_t)dp->i_endoff, IO_SYNC, @@ -940,7 +940,7 @@ ext2_dirremove(dvp, cnp) &bp)) != 0) return (error); ep->inode = 0; - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; return (error); } @@ -951,7 +951,7 @@ ext2_dirremove(dvp, cnp) (char **)&ep, &bp)) != 0) return (error); ep->rec_len += dp->i_reclen; - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; return (error); } @@ -980,7 +980,7 @@ ext2_dirrewrite(dp, ip, cnp) ep->file_type = DTTOFT(IFTODT(ip->i_mode)); else ep->file_type = EXT2_FT_UNKNOWN; - error = BUF_WRITE(bp); + error = bwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; return (error); } |