xref: /openbmc/linux/fs/ext4/extents_status.h (revision c0677e6d)
1c0677e6dSZheng Liu /*
2c0677e6dSZheng Liu  *  fs/ext4/extents_status.h
3c0677e6dSZheng Liu  *
4c0677e6dSZheng Liu  * Written by Yongqiang Yang <xiaoqiangnk@gmail.com>
5c0677e6dSZheng Liu  * Modified by
6c0677e6dSZheng Liu  *	Allison Henderson <achender@linux.vnet.ibm.com>
7c0677e6dSZheng Liu  *	Zheng Liu <wenqing.lz@taobao.com>
8c0677e6dSZheng Liu  *
9c0677e6dSZheng Liu  */
10c0677e6dSZheng Liu 
11c0677e6dSZheng Liu #ifndef _EXT4_EXTENTS_STATUS_H
12c0677e6dSZheng Liu #define _EXT4_EXTENTS_STATUS_H
13c0677e6dSZheng Liu 
14c0677e6dSZheng Liu struct extent_status {
15c0677e6dSZheng Liu 	struct rb_node rb_node;
16c0677e6dSZheng Liu 	ext4_lblk_t start;	/* first block extent covers */
17c0677e6dSZheng Liu 	ext4_lblk_t len;	/* length of extent in block */
18c0677e6dSZheng Liu };
19c0677e6dSZheng Liu 
20c0677e6dSZheng Liu struct ext4_es_tree {
21c0677e6dSZheng Liu 	struct rb_root root;
22c0677e6dSZheng Liu 	struct extent_status *cache_es;	/* recently accessed extent */
23c0677e6dSZheng Liu };
24c0677e6dSZheng Liu 
25c0677e6dSZheng Liu #endif /* _EXT4_EXTENTS_STATUS_H */
26