blob: 3c6f7ecb60beea3843806c563be704c5d9f50545 [file] [log] [blame]
Zhen Kongee7bdc62019-03-14 10:55:19 -07001/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
4 */
5
6#ifndef _PFK_F2FS_H_
7#define _PFK_F2FS_H_
8
9#include <linux/types.h>
10#include <linux/fs.h>
11#include <crypto/ice.h>
12#include "pfk_internal.h"
13
14bool pfk_is_f2fs_type(const struct inode *inode);
15
16int pfk_f2fs_parse_inode(const struct bio *bio,
17 const struct inode *inode,
18 struct pfk_key_info *key_info,
19 enum ice_cryto_algo_mode *algo,
20 bool *is_pfe);
21
22bool pfk_f2fs_allow_merge_bio(const struct bio *bio1,
23 const struct bio *bio2, const struct inode *inode1,
24 const struct inode *inode2);
25
26int __init pfk_f2fs_init(void);
27
28void pfk_f2fs_deinit(void);
29
30#endif /* _PFK_F2FS_H_ */