blob: c33232f35a1474e6dae4a8f39a884b638c369b46 [file] [log] [blame]
Neeraj Sonic692cb92018-04-18 17:20:22 +05301/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef _PFK_EXT4_H_
14#define _PFK_EXT4_H_
15
16#include <linux/types.h>
17#include <linux/fs.h>
18#include <crypto/ice.h>
19#include "pfk_internal.h"
20
21bool pfk_is_ext4_type(const struct inode *inode);
22
23int pfk_ext4_parse_inode(const struct bio *bio,
24 const struct inode *inode,
25 struct pfk_key_info *key_info,
26 enum ice_cryto_algo_mode *algo,
27 bool *is_pfe);
28
29bool pfk_ext4_allow_merge_bio(const struct bio *bio1,
30 const struct bio *bio2, const struct inode *inode1,
31 const struct inode *inode2);
32
33int __init pfk_ext4_init(void);
34
35void pfk_ext4_deinit(void);
36
37#endif /* _PFK_EXT4_H_ */