/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _UDF_I_H #define _UDF_I_H struct extent_position { … }; struct udf_ext_cache { … }; /* * The i_data_sem and i_mutex serve for protection of allocation information * of a regular files and symlinks. This includes all extents belonging to * the file/symlink, a fact whether data are in-inode or in external data * blocks, preallocation, goal block information... When extents are read, * i_mutex or i_data_sem must be held (for reading is enough in case of * i_data_sem). When extents are changed, i_data_sem must be held for writing * and also i_mutex must be held. * * For directories i_mutex is used for all the necessary protection. */ struct udf_inode_info { … }; static inline struct udf_inode_info *UDF_I(struct inode *inode) { … } #endif /* _UDF_I_H) */