Function report |
Source Code:fs\direct-io.c |
Create Date:2022-07-28 20:15:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:A really large O_DIRECT read or write can generate a lot of BIOs. So* to keep the memory consumption sane we periodically reap any completed BIOs* during the BIO generation phase.* This also helps to limit the peak amount of pinned userspace memory.
Proto:static inline int dio_bio_reap(struct dio *dio, struct dio_submit *sdio)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dio * | dio | |
struct dio_submit * | sdio |
566 | ret = 0 |
568 | If ate limit reaping ++ >= 64 Then |
569 | When singly linked via bi_private cycle |
574 | spin_lock_irqsave( & protects BIO fields below , flags) |
578 | ret2 = blk_status_to_errno(dio_bio_complete(dio, bio)) |
582 | ate limit reaping = 0 |
584 | Return ret |
Name | Describe |
---|---|
dio_new_bio | There is no bio. Make one now. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |