Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build as a module #4

Open
PypeBros opened this issue Mar 1, 2018 · 3 comments
Open

cannot build as a module #4

PypeBros opened this issue Mar 1, 2018 · 3 comments

Comments

@PypeBros
Copy link

PypeBros commented Mar 1, 2018

using sources for kernel 3.4.35,
I've got an error about blk_flush_plug_list symbol not being available. It turns out that blk_flush_plug() function used in blkdev.c to implement read-ahead is kernel-internal.

sdfat-flush-plug.patch.txt

@airend
Copy link

airend commented Mar 30, 2018

  • Would #ifdef CONFIG_SDFAT_FS_MODULE be better?
  • What if we replace blk_start_plug with:
                if (!current->plug)
                        current->plug = &plug;
  • That should basically equal blk_flush_plug(current) across all kernels, w/o the extra blk_start_plug overhead.

Still, I wonder why they need to flush just after blk_start_plug; the other drivers don't seem to need it, but maybe it happens in different ways. Also, feel free to comment on #6.

@GrayJack
Copy link
Contributor

Sorry for my ignorance, new into that stuff
What would be the difference using #ifdef CONFIG_SDFAT_FS_MODULE or #ifdef MODULE?

@airend
Copy link

airend commented Apr 1, 2018

What would be the difference using #ifdef CONFIG_SDFAT_FS_MODULE or #ifdef MODULE?

It shouldn't make any difference in this case; just thought the full symbol is more explicit. Either way, maybe we can just use the blk_finish_plug() plus current->plug re-assignment for both cases.

diizzyy added a commit to diizzyy/packages that referenced this issue Jun 8, 2018
Add kernel-sdfat to repo
Patch adapted from cryptomilk/kernel-sdfat#4
Updated/Successor to exfat-nofuse module

Signed-off-by: Daniel Engberg <[email protected]>
diizzyy added a commit to diizzyy/packages that referenced this issue Jun 8, 2018
Add kernel-sdfat to repo
Patch adapted from cryptomilk/kernel-sdfat#4
Updated/Successor to exfat-nofuse module

Signed-off-by: Daniel Engberg <[email protected]>
diizzyy added a commit to diizzyy/packages that referenced this issue Jun 8, 2018
Add kernel-sdfat to repo
Patch adapted from cryptomilk/kernel-sdfat#4

Signed-off-by: Daniel Engberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants