diff options
| author | Christoph Hellwig <hch@lab343.munich.sgi.com> | 2003-02-11 17:35:12 +0100 |
|---|---|---|
| committer | Christoph Hellwig <hch@lab343.munich.sgi.com> | 2003-02-11 17:35:12 +0100 |
| commit | 2fabff86322d962422e1e63e9fcdd1bb59321dbd (patch) | |
| tree | 32a3cf0d112ade2d7a4692751630193379c8d683 /fs/ext2/ialloc.c | |
| parent | 5a75399888b259d69384a63e464944dfd62d818d (diff) | |
| parent | 2b009dcf7905a0e81813f7b67d6a1a004208e3ad (diff) | |
Merge http://linux.bkbits.net/linux-2.5
into lab343.munich.sgi.com:/home/hch/repo/bkbits/linux-2.5
Diffstat (limited to 'fs/ext2/ialloc.c')
| -rw-r--r-- | fs/ext2/ialloc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index bb02b848b77f..aaa58ce59962 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -146,10 +146,8 @@ void ext2_free_inode (struct inode * inode) mark_buffer_dirty(EXT2_SB(sb)->s_sbh); } mark_buffer_dirty(bitmap_bh); - if (sb->s_flags & MS_SYNCHRONOUS) { - ll_rw_block(WRITE, 1, &bitmap_bh); - wait_on_buffer(bitmap_bh); - } + if (sb->s_flags & MS_SYNCHRONOUS) + sync_dirty_buffer(bitmap_bh); sb->s_dirt = 1; error_return: brelse(bitmap_bh); @@ -485,10 +483,8 @@ repeat: ext2_set_bit(i, bitmap_bh->b_data); mark_buffer_dirty(bitmap_bh); - if (sb->s_flags & MS_SYNCHRONOUS) { - ll_rw_block(WRITE, 1, &bitmap_bh); - wait_on_buffer(bitmap_bh); - } + if (sb->s_flags & MS_SYNCHRONOUS) + sync_dirty_buffer(bitmap_bh); brelse(bitmap_bh); ino = group * EXT2_INODES_PER_GROUP(sb) + i + 1; |
