patch-1.3.16 linux/fs/minix/truncate.c
Next file: linux/fs/msdos/inode.c
Previous file: linux/fs/file_table.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Sat Aug 5 19:29:27 1995
- Orig file:
v1.3.15/linux/fs/minix/truncate.c
- Orig date:
Mon Jan 23 10:38:29 1995
diff -u --recursive --new-file v1.3.15/linux/fs/minix/truncate.c linux/fs/minix/truncate.c
@@ -52,7 +52,10 @@
}
*p = 0;
inode->i_dirt = 1;
- brelse(bh);
+ if (bh) {
+ mark_buffer_clean(bh);
+ brelse(bh);
+ }
minix_free_block(inode->i_sb,tmp);
}
return retry;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this