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

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