diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-06-21 21:06:04 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-06-21 21:06:04 +0000 |
| commit | add4ae93245a804dedbb182073fb4aeb05ab2b37 (patch) | |
| tree | dbe5590a739686da45f45e6e3bd6509122d365ae /sys/gnu/ext2fs/ext2_linux_ialloc.c | |
| parent | 9b7a8fb7d80987137d1d08e965c6490502913659 (diff) | |
Notes
Diffstat (limited to 'sys/gnu/ext2fs/ext2_linux_ialloc.c')
| -rw-r--r-- | sys/gnu/ext2fs/ext2_linux_ialloc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/gnu/ext2fs/ext2_linux_ialloc.c b/sys/gnu/ext2fs/ext2_linux_ialloc.c index d7f5bec18cd7..ee4c4186b454 100644 --- a/sys/gnu/ext2fs/ext2_linux_ialloc.c +++ b/sys/gnu/ext2fs/ext2_linux_ialloc.c @@ -53,11 +53,15 @@ */ void mark_buffer_dirty(struct buf *bh) { + int s; + + s = splbio(); if (!(bh->b_flags & B_DELWRI)) { numdirtybuffers++; bh->b_flags |= B_DELWRI; + bh->b_flags &= ~(B_READ | B_ERROR); } - bh->b_flags &= ~(B_READ | B_ERROR); + splx(s); } struct ext2_group_desc * get_group_desc (struct mount * mp, @@ -274,8 +278,7 @@ static void inc_inode_version (struct inode * inode, EXT2_INODES_PER_BLOCK(inode->i_sb)); raw_inode->i_version++; inode->u.ext2_i.i_version = raw_inode->i_version; - mark_buffer_dirty(bh); - brelse (bh); + bdwrite (bh); } #endif /* linux */ |
