]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/fs-io-direct.h
Update bcachefs sources to 717b356d1d bcachefs: Convert journal validation to bkey_in...
[bcachefs-tools-debian] / libbcachefs / fs-io-direct.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_FS_IO_DIRECT_H
3 #define _BCACHEFS_FS_IO_DIRECT_H
4
5 #ifndef NO_BCACHEFS_FS
6 ssize_t bch2_direct_write(struct kiocb *, struct iov_iter *);
7
8 void bch2_fs_fs_io_direct_exit(struct bch_fs *);
9 int bch2_fs_fs_io_direct_init(struct bch_fs *);
10 #else
11 static inline void bch2_fs_fs_io_direct_exit(struct bch_fs *c) {}
12 static inline int bch2_fs_fs_io_direct_init(struct bch_fs *c) { return 0; }
13 #endif
14
15 #endif /* _BCACHEFS_FS_IO_DIRECT_H */