forked from Imagelibrary/rtems
cpukit/libblock: Ignore sync status prior to purge
This commit is contained in:
committed by
Joel Sherrill
parent
0d5319d49a
commit
b03aba3023
@@ -2901,7 +2901,7 @@ rtems_bdbuf_set_block_size (rtems_disk_device *dd,
|
||||
* device later.
|
||||
*/
|
||||
if (sync)
|
||||
rtems_bdbuf_syncdev (dd);
|
||||
(void) rtems_bdbuf_syncdev (dd);
|
||||
|
||||
rtems_bdbuf_lock_cache ();
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ static void rtems_blkdev_imfs_destroy(IMFS_jnode_t *node)
|
||||
rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_node(node);
|
||||
rtems_disk_device *dd = &ctx->dd;
|
||||
|
||||
rtems_bdbuf_syncdev(dd);
|
||||
(void) rtems_bdbuf_syncdev(dd);
|
||||
rtems_bdbuf_purge_dev(dd);
|
||||
|
||||
if (ctx->fd >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user