2022-10-26 15:08:29 -04:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
|
|
|
#ifndef BTRFS_IOCTL_H
|
|
|
|
#define BTRFS_IOCTL_H
|
|
|
|
|
2024-01-27 00:53:06 +01:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
struct file;
|
|
|
|
struct dentry;
|
|
|
|
struct mnt_idmap;
|
2025-07-03 09:36:41 +02:00
|
|
|
struct file_kattr;
|
2025-02-12 21:22:16 +01:00
|
|
|
struct io_uring_cmd;
|
2025-03-03 15:55:26 +01:00
|
|
|
struct btrfs_inode;
|
2024-01-27 00:53:06 +01:00
|
|
|
struct btrfs_fs_info;
|
|
|
|
struct btrfs_ioctl_balance_args;
|
|
|
|
|
2022-10-26 15:08:29 -04:00
|
|
|
long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
|
|
|
long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
2025-07-03 09:36:41 +02:00
|
|
|
int btrfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);
|
2023-01-13 12:49:21 +01:00
|
|
|
int btrfs_fileattr_set(struct mnt_idmap *idmap,
|
2025-07-03 09:36:41 +02:00
|
|
|
struct dentry *dentry, struct file_kattr *fa);
|
2022-10-26 15:08:29 -04:00
|
|
|
int btrfs_ioctl_get_supported_features(void __user *arg);
|
2025-03-03 15:55:26 +01:00
|
|
|
void btrfs_sync_inode_flags_to_i_flags(struct btrfs_inode *inode);
|
2022-10-26 15:08:29 -04:00
|
|
|
void btrfs_update_ioctl_balance_args(struct btrfs_fs_info *fs_info,
|
|
|
|
struct btrfs_ioctl_balance_args *bargs);
|
2024-10-22 15:50:20 +01:00
|
|
|
int btrfs_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags);
|
|
|
|
void btrfs_uring_read_extent_endio(void *ctx, int err);
|
2022-10-26 15:08:29 -04:00
|
|
|
|
|
|
|
#endif
|