mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
ed49aa9fb3
It's a generic helper not specific to ioctls and used in several places,
so move it out from ioctl.c and into fs.c. While at it change its return
type from int to bool and declare the loop variable in the loop itself.
This also slightly reduces the module's size.
Before this change:
$ size fs/btrfs/btrfs.ko
text data bss dec hex filename
1781492 161037 16920 1959449
1de619 fs/btrfs/btrfs.ko
After this change:
$ size fs/btrfs/btrfs.ko
text data bss dec hex filename
1781340 161037 16920 1959297 1de581 fs/btrfs/btrfs.ko
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
28 lines
929 B
C
28 lines
929 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef BTRFS_IOCTL_H
|
|
#define BTRFS_IOCTL_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct file;
|
|
struct dentry;
|
|
struct mnt_idmap;
|
|
struct fileattr;
|
|
struct btrfs_fs_info;
|
|
struct btrfs_ioctl_balance_args;
|
|
|
|
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);
|
|
int btrfs_fileattr_get(struct dentry *dentry, struct fileattr *fa);
|
|
int btrfs_fileattr_set(struct mnt_idmap *idmap,
|
|
struct dentry *dentry, struct fileattr *fa);
|
|
int btrfs_ioctl_get_supported_features(void __user *arg);
|
|
void btrfs_sync_inode_flags_to_i_flags(struct inode *inode);
|
|
void btrfs_update_ioctl_balance_args(struct btrfs_fs_info *fs_info,
|
|
struct btrfs_ioctl_balance_args *bargs);
|
|
int btrfs_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags);
|
|
void btrfs_uring_read_extent_endio(void *ctx, int err);
|
|
|
|
#endif
|