I think exporting them makes sense. In fact, given that ->readpages() is an
address_space op, filesystems do have to be able to add these pages to pagecache.
It might be simpler to just use add_to_page_cache_lru(), and to export that
instead. But that is a little more lock-intensive, and is equivalent to
exporting add_to_page_cache() and __pagevec_lru_add().
btw, cifs_copy_cache_pages() can use the more efficient kmap_atomic(KM_USER0)
in place of the kmap().
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/