blob: 346027b01961cdb200967d54f6c574b3308dc146 [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,
Neeraj Soniefb33112018-08-17 20:39:35 +053027 bool *is_pfe,
Neeraj Soniefb33112018-08-17 20:39:35 +053028 const char *storage_type);
Neeraj Sonic692cb92018-04-18 17:20:22 +053029
30bool pfk_ext4_allow_merge_bio(const struct bio *bio1,
31 const struct bio *bio2, const struct inode *inode1,
32 const struct inode *inode2);
33
34int __init pfk_ext4_init(void);
35
36void pfk_ext4_deinit(void);
37
38#endif /* _PFK_EXT4_H_ */