shithub: lwext4

Download patch

ref: 2ad6d9ab9645eb672607e2ddf655d885d1be914b
parent: faea10c2b5a7390927944caa7d9cd72dc9162860
author: ngkaho1234 <[email protected]>
date: Sat Dec 19 12:37:23 EST 2015

ext4_blockdev: allow flushing data to disk while refcount is not 0.

--- a/lwext4/ext4_blockdev.c
+++ b/lwext4/ext4_blockdev.c
@@ -140,8 +140,6 @@
 {
 	int r;
 	struct ext4_bcache *bc = bdev->bc;
-	/*Only flushing data in an unreferenced buffer is allowed.*/
-	ext4_assert(!buf->refctr);
 
 	if (ext4_bcache_test_flag(buf, BC_DIRTY)) {
 		r = ext4_blocks_set_direct(bdev, buf->data, buf->lba, 1);