summaryrefslogtreecommitdiff
path: root/fs/btrfs/direct-io.h
blob: 3dc3ea926afe211af67dba1838b8be25a476625e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef BTRFS_DIRECT_IO_H
#define BTRFS_DIRECT_IO_H

#include <linux/types.h>

int __init btrfs_init_dio(void);
void __cold btrfs_destroy_dio(void);

ssize_t btrfs_direct_write(struct kiocb *iocb, struct iov_iter *from);
ssize_t btrfs_direct_read(struct kiocb *iocb, struct iov_iter *to);

#endif /* BTRFS_DIRECT_IO_H */