Files
ack-tegra/include/linux/kernel_read_file.h
Donghyeok Choe b9f02b7e52 ANDROID: fs: Add read_comp_algo_dictionary() to read compression dictionaries
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>
2025-04-02 11:26:56 -07:00

1.7 KiB