Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0+ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * dat.h - NILFS disk address translation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2006-2008 Nippon Telegraph and Telephone Corporation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Written by Koji Sato.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef _NILFS_DAT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define _NILFS_DAT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/buffer_head.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/fs.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/nilfs2_ondisk.h>	/* nilfs_inode, nilfs_checkpoint */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct nilfs_palloc_req;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) int nilfs_dat_translate(struct inode *, __u64, sector_t *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int nilfs_dat_prepare_alloc(struct inode *, struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) void nilfs_dat_commit_alloc(struct inode *, struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) void nilfs_dat_abort_alloc(struct inode *, struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) int nilfs_dat_prepare_start(struct inode *, struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) void nilfs_dat_commit_start(struct inode *, struct nilfs_palloc_req *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 			    sector_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) int nilfs_dat_prepare_end(struct inode *, struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) void nilfs_dat_commit_end(struct inode *, struct nilfs_palloc_req *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) void nilfs_dat_abort_end(struct inode *, struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) int nilfs_dat_prepare_update(struct inode *, struct nilfs_palloc_req *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 			     struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) void nilfs_dat_commit_update(struct inode *, struct nilfs_palloc_req *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 			     struct nilfs_palloc_req *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void nilfs_dat_abort_update(struct inode *, struct nilfs_palloc_req *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 			    struct nilfs_palloc_req *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) int nilfs_dat_mark_dirty(struct inode *, __u64);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) int nilfs_dat_freev(struct inode *, __u64 *, size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) int nilfs_dat_move(struct inode *, __u64, sector_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) ssize_t nilfs_dat_get_vinfo(struct inode *, void *, unsigned int, size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) int nilfs_dat_read(struct super_block *sb, size_t entry_size,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 		   struct nilfs_inode *raw_inode, struct inode **inodep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #endif	/* _NILFS_DAT_H */