Partner zram driver reads a file to populate its compression dictionary. To support this while restricting kernel_read_file_from_path() usage, introduce read_comp_algo_dictionary(). This function wraps kernel_read_file_from_path() and is GPL-exported. It allows zram and similar users to load dictionaries while keeping direct usage of kernel_read_file_from_path() controlled. Bug: 407663651 Change-Id: I013330e270dc6a7529e83ef4efc1472c198fcc92 Signed-off-by: Donghyeok Choe <d7271.choe@samsung.com>
1.7 KiB
1.7 KiB