CIFS can not be built as a module because it cifs_readpages calls:
__pagevec_lru_add
add_to_page_cache
The patch to mm/filemap.c and mm/swap.c is trivial, the question is
should those internal functions be exported in the first place.
--
Stephen Hemminger <[email protected]>
Open Source Devlopment Lab
Stephen Hemminger <[email protected]> wrote:
>
> CIFS can not be built as a module because it cifs_readpages calls:
> __pagevec_lru_add
> add_to_page_cache
>
> The patch to mm/filemap.c and mm/swap.c is trivial, the question is
> should those internal functions be exported in the first place.
>
Yes they need to be exported. Otherwise filesystems cannot implement
a fully custom readpages address_space op.
I have a fix for this queued.