summaryrefslogtreecommitdiff
path: root/ext2fs/truncate.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-11 14:36:00 +0000
committerMiles Bader <miles@gnu.org>1995-04-11 14:36:00 +0000
commit7491eb25ca513da569175ce285a298b819237cc3 (patch)
tree69ad04e4e8e2dc283147ae52ec62e73c410af796 /ext2fs/truncate.c
parent856dfb871d06612f182efa06f6d275b098288ade (diff)
Formerly truncate.c.~2~
Diffstat (limited to 'ext2fs/truncate.c')
-rw-r--r--ext2fs/truncate.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext2fs/truncate.c b/ext2fs/truncate.c
index 94a64f3e..9660a416 100644
--- a/ext2fs/truncate.c
+++ b/ext2fs/truncate.c
@@ -48,7 +48,7 @@ static int trunc_direct (struct inode * inode)
{
u32 * p;
int i, tmp;
- struct buffer_head * bh;
+ char * bh;
unsigned long block_to_free = 0;
unsigned long free_count = 0;
int retry = 0;
@@ -106,8 +106,8 @@ repeat:
static int trunc_indirect (struct inode * inode, int offset, u32 * p)
{
int i, tmp;
- struct buffer_head * bh;
- struct buffer_head * ind_bh;
+ char * bh;
+ char * ind_bh;
u32 * ind;
unsigned long block_to_free = 0;
unsigned long free_count = 0;
@@ -203,7 +203,7 @@ static int trunc_dindirect (struct inode * inode, int offset,
u32 * p)
{
int i, tmp;
- struct buffer_head * dind_bh;
+ char * dind_bh;
u32 * dind;
int retry = 0;
int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb);
@@ -262,7 +262,7 @@ repeat:
static int trunc_tindirect (struct inode * inode)
{
int i, tmp;
- struct buffer_head * tind_bh;
+ char * tind_bh;
u32 * tind, * p;
int retry = 0;
int addr_per_block = EXT2_ADDR_PER_BLOCK(inode->i_sb);
@@ -321,7 +321,7 @@ repeat:
void ext2_truncate (struct inode * inode)
{
int retry;
- struct buffer_head * bh;
+ char * bh;
int err;
int offset;