mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
6740021e90
Add some kernel-doc notation to structs in fiemap header files then pull that into Documentation/filesystems/fiemap.rst instead of duplicating the header file structs in fiemap.rst. This helps to future-proof fiemap.rst against struct changes. Add missing flags documentation from header files into fiemap.rst for FIEMAP_FLAG_CACHE and FIEMAP_EXTENT_SHARED. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Link: https://lore.kernel.org/r/20241121011352.201907-1-rdunlap@infradead.org Cc: Christoph Hellwig <hch@lst.de> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: Jan Kara <jack@suse.cz> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
28 lines
831 B
C
28 lines
831 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_FIEMAP_H
|
|
#define _LINUX_FIEMAP_H 1
|
|
|
|
#include <uapi/linux/fiemap.h>
|
|
#include <linux/fs.h>
|
|
|
|
/**
|
|
* struct fiemap_extent_info - fiemap request to a filesystem
|
|
* @fi_flags: Flags as passed from user
|
|
* @fi_extents_mapped: Number of mapped extents
|
|
* @fi_extents_max: Size of fiemap_extent array
|
|
* @fi_extents_start: Start of fiemap_extent array
|
|
*/
|
|
struct fiemap_extent_info {
|
|
unsigned int fi_flags;
|
|
unsigned int fi_extents_mapped;
|
|
unsigned int fi_extents_max;
|
|
struct fiemap_extent __user *fi_extents_start;
|
|
};
|
|
|
|
int fiemap_prep(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
|
u64 start, u64 *len, u32 supported_flags);
|
|
int fiemap_fill_next_extent(struct fiemap_extent_info *info, u64 logical,
|
|
u64 phys, u64 len, u32 flags);
|
|
|
|
#endif /* _LINUX_FIEMAP_H 1 */
|