treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / s390 / char / hmcdrv_cache.h
blobd69f9fe87faa0526a71a04532f873e9735f7fca6
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * SE/HMC Drive (Read) Cache Functions
5 * Copyright IBM Corp. 2013
6 * Author(s): Ralf Hoppe (rhoppe@de.ibm.com)
7 */
9 #ifndef __HMCDRV_CACHE_H__
10 #define __HMCDRV_CACHE_H__
12 #include <linux/mmzone.h>
13 #include "hmcdrv_ftp.h"
15 #define HMCDRV_CACHE_SIZE_DFLT (MAX_ORDER_NR_PAGES * PAGE_SIZE / 2UL)
17 typedef ssize_t (*hmcdrv_cache_ftpfunc)(const struct hmcdrv_ftp_cmdspec *ftp,
18 size_t *fsize);
20 ssize_t hmcdrv_cache_cmd(const struct hmcdrv_ftp_cmdspec *ftp,
21 hmcdrv_cache_ftpfunc func);
22 int hmcdrv_cache_startup(size_t cachesize);
23 void hmcdrv_cache_shutdown(void);
25 #endif /* __HMCDRV_CACHE_H__ */