Fix the compile error when dm-bufio is built as a module.

1. dm-bufio module use blk_flush_plug();
2. blk_flush_plug is an inline function and it calls __blk_flush_plug.

Signed-off-by: LongPing Wei <weilongp...@oppo.com>
---
 block/blk-core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/blk-core.c b/block/blk-core.c
index e8cc270a453f..4d72ebeb18f7 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1230,6 +1230,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool 
from_schedule)
        plug->cur_ktime = 0;
        current->flags &= ~PF_BLOCK_TS;
 }
+EXPORT_SYMBOL(__blk_flush_plug);
 
 /**
  * blk_finish_plug - mark the end of a batch of submitted I/O
-- 
2.34.1


Reply via email to