summaryrefslogtreecommitdiffstats
path: root/fs/sysv/balloc.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
committer <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
commitbeb116954b9b7f3bb56412b2494b562f02b864b1 (patch)
tree120e997879884e1b9d93b265221b939d2ef1ade1 /fs/sysv/balloc.c
parent908d4681a1dc3792ecafbe64265783a86c4cccb6 (diff)
Import of Linux/MIPS 2.1.14
Diffstat (limited to 'fs/sysv/balloc.c')
-rw-r--r--fs/sysv/balloc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/sysv/balloc.c b/fs/sysv/balloc.c
index eddbb0bea..5fa82929b 100644
--- a/fs/sysv/balloc.c
+++ b/fs/sysv/balloc.c
@@ -19,10 +19,6 @@
* This file contains code for allocating/freeing blocks.
*/
-#ifdef MODULE
-#include <linux/module.h>
-#endif
-
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/sysv_fs.h>
@@ -88,7 +84,7 @@ void sysv_free_block(struct super_block * sb, unsigned int block)
*flc_count = *sb->sv_sb_flc_count; /* = sb->sv_flc_size */
memcpy(flc_blocks, sb->sv_sb_flc_blocks, *flc_count * sizeof(sysv_zone_t));
mark_buffer_dirty(bh, 1);
- bh->b_uptodate = 1;
+ mark_buffer_uptodate(bh, 1);
brelse(bh);
*sb->sv_sb_flc_count = 0;
} else
@@ -105,14 +101,14 @@ void sysv_free_block(struct super_block * sb, unsigned int block)
memset(bh->b_data, 0, sb->sv_block_size);
/* this implies ((struct ..._freelist_chunk *) bh->b_data)->flc_count = 0; */
mark_buffer_dirty(bh, 1);
- bh->b_uptodate = 1;
+ mark_buffer_uptodate(bh, 1);
brelse(bh);
/* still *sb->sv_sb_flc_count = 0 */
} else {
/* Throw away block's contents */
bh = sv_get_hash_table(sb, sb->s_dev, block);
if (bh)
- bh->b_dirt = 0;
+ mark_buffer_clean(bh);
brelse(bh);
}
if (sb->sv_convert)
@@ -212,7 +208,7 @@ int sysv_new_block(struct super_block * sb)
}
memset(bh->b_data, 0, sb->sv_block_size);
mark_buffer_dirty(bh, 1);
- bh->b_uptodate = 1;
+ mark_buffer_uptodate(bh, 1);
brelse(bh);
if (sb->sv_convert)
*sb->sv_sb_total_free_blocks =