diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-05 12:49:31 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-05 12:49:31 +0200 |
commit | b8c60d554fae08abefa2329ca4fe681508bb0025 (patch) | |
tree | 8e380d2508b96d2656c3472f25d57a8f2713fee5 /common | |
parent | 431cdeb985c605cbe0a2df0446569d224e973539 (diff) | |
parent | 4a28cf966d07e4f49b35ba6750fd73c87231c927 (diff) | |
download | barebox-b8c60d554fae08abefa2329ca4fe681508bb0025.tar.gz barebox-b8c60d554fae08abefa2329ca4fe681508bb0025.tar.xz |
Merge branch 'for-next/imagesize'
Diffstat (limited to 'common')
-rw-r--r-- | common/block.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/block.c b/common/block.c index ad07f8b2e2..ab39a3622c 100644 --- a/common/block.c +++ b/common/block.c @@ -43,6 +43,9 @@ static int writebuffer_flush(struct block_device *blk) { struct chunk *chunk; + if (!IS_ENABLED(CONFIG_BLOCK_WRITE)) + return 0; + list_for_each_entry(chunk, &blk->buffered_blocks, list) { if (chunk->dirty) { blk->ops->write(blk, chunk->data, chunk->block_start, blk->rdbufsize); |