Neeraj Soni | c692cb9 | 2018-04-18 17:20:22 +0530 | [diff] [blame] | 1 | /* 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 | |
| 21 | bool pfk_is_ext4_type(const struct inode *inode); |
| 22 | |
| 23 | int 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 Soni | efb3311 | 2018-08-17 20:39:35 +0530 | [diff] [blame] | 27 | bool *is_pfe, |
Neeraj Soni | efb3311 | 2018-08-17 20:39:35 +0530 | [diff] [blame] | 28 | const char *storage_type); |
Neeraj Soni | c692cb9 | 2018-04-18 17:20:22 +0530 | [diff] [blame] | 29 | |
| 30 | bool pfk_ext4_allow_merge_bio(const struct bio *bio1, |
| 31 | const struct bio *bio2, const struct inode *inode1, |
| 32 | const struct inode *inode2); |
| 33 | |
| 34 | int __init pfk_ext4_init(void); |
| 35 | |
| 36 | void pfk_ext4_deinit(void); |
| 37 | |
| 38 | #endif /* _PFK_EXT4_H_ */ |