summaryrefslogtreecommitdiffstats
path: root/fs/minix
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-04-05 11:23:36 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-04-05 11:23:36 +0000
commit4318fbda2a7ee51caafdc4eb1f8028a3f0605142 (patch)
treecddb50a81d7d1a628cc400519162080c6d87868e /fs/minix
parent36ea5120664550fae6d31f1c6f695e4f8975cb06 (diff)
o Merge with Linux 2.1.91.
o First round of bugfixes for the SC/MC CPUs. o FPU context switch fixes. o Lazy context switches. o Faster syscalls. o Removed dead code. o Shitloads of other things I forgot ...
Diffstat (limited to 'fs/minix')
-rw-r--r--fs/minix/truncate.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/minix/truncate.c b/fs/minix/truncate.c
index 298d6c155..56b490841 100644
--- a/fs/minix/truncate.c
+++ b/fs/minix/truncate.c
@@ -117,7 +117,7 @@ repeat:
for (i = 0; i < 512; i++)
if (*(ind++))
break;
- if (i >= 512)
+ if (i >= 512) {
if (ind_bh->b_count != 1)
retry = 1;
else {
@@ -125,6 +125,7 @@ repeat:
*p = 0;
minix_free_block(inode->i_sb,tmp);
}
+ }
brelse(ind_bh);
return retry;
}
@@ -161,7 +162,7 @@ repeat:
for (i = 0; i < 512; i++)
if (*(dind++))
break;
- if (i >= 512)
+ if (i >= 512) {
if (dind_bh->b_count != 1)
retry = 1;
else {
@@ -170,6 +171,7 @@ repeat:
mark_inode_dirty(inode);
minix_free_block(inode->i_sb,tmp);
}
+ }
brelse(dind_bh);
return retry;
}
@@ -279,7 +281,7 @@ repeat:
for (i = 0; i < 256; i++)
if (*(ind++))
break;
- if (i >= 256)
+ if (i >= 256) {
if (ind_bh->b_count != 1)
retry = 1;
else {
@@ -287,6 +289,7 @@ repeat:
*p = 0;
minix_free_block(inode->i_sb,tmp);
}
+ }
brelse(ind_bh);
return retry;
}
@@ -323,7 +326,7 @@ repeat:
for (i = 0; i < 256; i++)
if (*(dind++))
break;
- if (i >= 256)
+ if (i >= 256) {
if (dind_bh->b_count != 1)
retry = 1;
else {
@@ -332,6 +335,7 @@ repeat:
mark_inode_dirty(inode);
minix_free_block(inode->i_sb,tmp);
}
+ }
brelse(dind_bh);
return retry;
}
@@ -368,7 +372,7 @@ repeat:
for (i = 0; i < 256; i++)
if (*(tind++))
break;
- if (i >= 256)
+ if (i >= 256) {
if (tind_bh->b_count != 1)
retry = 1;
else {
@@ -377,6 +381,7 @@ repeat:
mark_inode_dirty(inode);
minix_free_block(inode->i_sb,tmp);
}
+ }
brelse(tind_bh);
return retry;
}