/linux-6.3-rc2/fs/ |
A D | ioctl.c | 466 memset(fa, 0, sizeof(*fa)); in fileattr_fill_xflags() 467 fa->fsx_valid = true; in fileattr_fill_xflags() 468 fa->fsx_xflags = xflags; in fileattr_fill_xflags() 474 fa->flags |= FS_SYNC_FL; in fileattr_fill_xflags() 480 fa->flags |= FS_DAX_FL; in fileattr_fill_xflags() 496 memset(fa, 0, sizeof(*fa)); in fileattr_fill_flags() 497 fa->flags_valid = true; in fileattr_fill_flags() 498 fa->flags = flags; in fileattr_fill_flags() 685 if (fa->flags_valid) { in vfs_fileattr_set() 719 struct fileattr fa; in ioctl_setflags() local [all …]
|
A D | fcntl.c | 870 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry() 871 if (fa->fa_file != filp) in fasync_remove_entry() 875 fa->fa_file = NULL; in fasync_remove_entry() 878 *fp = fa->fa_next; in fasync_remove_entry() 917 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry() 918 if (fa->fa_file != filp) in fasync_insert_entry() 922 fa->fa_fd = fd; in fasync_insert_entry() 938 return fa; in fasync_insert_entry() 988 while (fa) { in kill_fasync_rcu() 998 if (fa->fa_file) { in kill_fasync_rcu() [all …]
|
/linux-6.3-rc2/net/ipv4/ |
A D | fib_trie.c | 1005 return fa; in fib_find_alias() 1009 return fa; in fib_find_alias() 1034 if (fa->fa_slen == slen && fa->tb_id == fri->tb_id && in fib_find_matching_alias() 1035 fa->fa_dscp == fri->dscp && fa->fa_info == fri->fi && in fib_find_matching_alias() 1037 return fa; in fib_find_matching_alias() 1166 if (fa) { in fib_insert_alias() 1177 fa = last; in fib_insert_alias() 1180 if (fa) in fib_insert_alias() 1256 if (fa && fa->fa_dscp == dscp && in fib_table_insert() 1733 if (!fa) in fib_table_delete() [all …]
|
A D | fib_lookup.h | 29 static inline void fib_alias_accessed(struct fib_alias *fa) in fib_alias_accessed() argument 31 if (!(fa->fa_state & FA_S_ACCESSED)) in fib_alias_accessed() 32 fa->fa_state |= FA_S_ACCESSED; in fib_alias_accessed() 44 void rtmsg_fib(int event, __be32 key, struct fib_alias *fa, int dst_len,
|
/linux-6.3-rc2/include/linux/ |
A D | fileattr.h | 36 int copy_fsxattr_to_user(const struct fileattr *fa, struct fsxattr __user *ufa); 38 void fileattr_fill_xflags(struct fileattr *fa, u32 xflags); 39 void fileattr_fill_flags(struct fileattr *fa, u32 flags); 48 static inline bool fileattr_has_fsx(const struct fileattr *fa) in fileattr_has_fsx() argument 50 return fa->fsx_valid && in fileattr_has_fsx() 51 ((fa->fsx_xflags & ~FS_XFLAG_COMMON) || fa->fsx_extsize != 0 || in fileattr_has_fsx() 52 fa->fsx_projid != 0 || fa->fsx_cowextsize != 0); in fileattr_has_fsx() 55 int vfs_fileattr_get(struct dentry *dentry, struct fileattr *fa); 57 struct fileattr *fa);
|
/linux-6.3-rc2/io_uring/ |
A D | advise.c | 65 static bool io_fadvise_force_async(struct io_fadvise *fa) in io_fadvise_force_async() argument 67 switch (fa->advice) { in io_fadvise_force_async() 79 struct io_fadvise *fa = io_kiocb_to_cmd(req, struct io_fadvise); in io_fadvise_prep() local 84 fa->offset = READ_ONCE(sqe->off); in io_fadvise_prep() 85 fa->len = READ_ONCE(sqe->len); in io_fadvise_prep() 86 fa->advice = READ_ONCE(sqe->fadvise_advice); in io_fadvise_prep() 87 if (io_fadvise_force_async(fa)) in io_fadvise_prep() 94 struct io_fadvise *fa = io_kiocb_to_cmd(req, struct io_fadvise); in io_fadvise() local 97 WARN_ON_ONCE(issue_flags & IO_URING_F_NONBLOCK && io_fadvise_force_async(fa)); in io_fadvise() 99 ret = vfs_fadvise(req->file, fa->offset, fa->len, fa->advice); in io_fadvise()
|
/linux-6.3-rc2/fs/xfs/libxfs/ |
A D | xfs_inode_buf.c | 182 if (fa) { in xfs_inode_from_disk() 499 if (fa) in xfs_dinode_verify() 500 return fa; in xfs_dinode_verify() 523 if (fa) in xfs_dinode_verify() 524 return fa; in xfs_dinode_verify() 539 if (fa) in xfs_dinode_verify() 551 if (fa) in xfs_dinode_verify() 574 if (fa) in xfs_dinode_verify() 575 return fa; in xfs_dinode_verify() 599 if (fa) in xfs_dinode_verify() [all …]
|
A D | xfs_symlink_remote.c | 116 xfs_failaddr_t fa; in xfs_symlink_read_verify() local 125 fa = xfs_symlink_verify(bp); in xfs_symlink_read_verify() 126 if (fa) in xfs_symlink_read_verify() 127 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_symlink_read_verify() 137 xfs_failaddr_t fa; in xfs_symlink_write_verify() local 143 fa = xfs_symlink_verify(bp); in xfs_symlink_write_verify() 144 if (fa) { in xfs_symlink_write_verify() 145 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_symlink_write_verify()
|
A D | xfs_dir2_data.c | 197 if (fa) in __xfs_dir3_data_check() 198 return fa; in __xfs_dir3_data_check() 278 xfs_failaddr_t fa; in xfs_dir3_data_check() local 281 if (!fa) in xfs_dir3_data_check() 285 fa); in xfs_dir3_data_check() 351 if (fa) in xfs_dir3_data_read_verify() 366 if (fa) { in xfs_dir3_data_write_verify() 432 if (fa) { in xfs_dir3_data_read() 1075 if (fa) in xfs_dir2_data_use_free() 1122 if (fa) in xfs_dir2_data_use_free() [all …]
|
A D | xfs_refcount_btree.c | 217 xfs_failaddr_t fa; in xfs_refcountbt_verify() local 225 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_refcountbt_verify() 226 if (fa) in xfs_refcountbt_verify() 227 return fa; in xfs_refcountbt_verify() 243 xfs_failaddr_t fa; in xfs_refcountbt_read_verify() local 248 fa = xfs_refcountbt_verify(bp); in xfs_refcountbt_read_verify() 249 if (fa) in xfs_refcountbt_read_verify() 261 xfs_failaddr_t fa; in xfs_refcountbt_write_verify() local 263 fa = xfs_refcountbt_verify(bp); in xfs_refcountbt_write_verify() 264 if (fa) { in xfs_refcountbt_write_verify() [all …]
|
A D | xfs_inode_fork.c | 135 xfs_failaddr_t fa; in xfs_iformat_extents() local 139 if (fa) { in xfs_iformat_extents() 142 dp, sizeof(*dp), fa); in xfs_iformat_extents() 687 xfs_failaddr_t fa = NULL; in xfs_ifork_verify_local_data() local 691 fa = xfs_dir2_sf_verify(ip); in xfs_ifork_verify_local_data() 694 fa = xfs_symlink_shortform_verify(ip); in xfs_ifork_verify_local_data() 700 if (fa) { in xfs_ifork_verify_local_data() 715 xfs_failaddr_t fa; in xfs_ifork_verify_local_attr() local 718 fa = __this_address; in xfs_ifork_verify_local_attr() 720 fa = xfs_attr_shortform_verify(ip); in xfs_ifork_verify_local_attr() [all …]
|
A D | xfs_alloc_btree.c | 293 xfs_failaddr_t fa; in xfs_allocbt_verify() local 301 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_allocbt_verify() 302 if (fa) in xfs_allocbt_verify() 303 return fa; in xfs_allocbt_verify() 331 xfs_failaddr_t fa; in xfs_allocbt_read_verify() local 336 fa = xfs_allocbt_verify(bp); in xfs_allocbt_read_verify() 337 if (fa) in xfs_allocbt_read_verify() 349 xfs_failaddr_t fa; in xfs_allocbt_write_verify() local 351 fa = xfs_allocbt_verify(bp); in xfs_allocbt_write_verify() 352 if (fa) { in xfs_allocbt_write_verify() [all …]
|
A D | xfs_bmap_btree.c | 409 xfs_failaddr_t fa; in xfs_bmbt_verify() local 421 if (fa) in xfs_bmbt_verify() 422 return fa; in xfs_bmbt_verify() 443 xfs_failaddr_t fa; in xfs_bmbt_read_verify() local 448 fa = xfs_bmbt_verify(bp); in xfs_bmbt_read_verify() 449 if (fa) in xfs_bmbt_read_verify() 450 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_bmbt_read_verify() 461 xfs_failaddr_t fa; in xfs_bmbt_write_verify() local 463 fa = xfs_bmbt_verify(bp); in xfs_bmbt_write_verify() 464 if (fa) { in xfs_bmbt_write_verify() [all …]
|
A D | xfs_rmap_btree.c | 291 xfs_failaddr_t fa; in xfs_rmapbt_verify() local 311 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_rmapbt_verify() 312 if (fa) in xfs_rmapbt_verify() 313 return fa; in xfs_rmapbt_verify() 329 xfs_failaddr_t fa; in xfs_rmapbt_read_verify() local 334 fa = xfs_rmapbt_verify(bp); in xfs_rmapbt_read_verify() 335 if (fa) in xfs_rmapbt_read_verify() 347 xfs_failaddr_t fa; in xfs_rmapbt_write_verify() local 349 fa = xfs_rmapbt_verify(bp); in xfs_rmapbt_write_verify() 350 if (fa) { in xfs_rmapbt_write_verify() [all …]
|
A D | xfs_attr_remote.c | 163 xfs_failaddr_t fa; in xfs_attr3_rmt_read_verify() local 166 error = __xfs_attr3_rmt_read_verify(bp, true, &fa); in xfs_attr3_rmt_read_verify() 168 xfs_verifier_error(bp, error, fa); in xfs_attr3_rmt_read_verify() 175 xfs_failaddr_t fa; in xfs_attr3_rmt_verify_struct() local 178 error = __xfs_attr3_rmt_read_verify(bp, false, &fa); in xfs_attr3_rmt_verify_struct() 179 return error ? fa : NULL; in xfs_attr3_rmt_verify_struct() 187 xfs_failaddr_t fa; in xfs_attr3_rmt_write_verify() local 205 fa = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in xfs_attr3_rmt_write_verify() 206 if (fa) { in xfs_attr3_rmt_write_verify() 207 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_attr3_rmt_write_verify()
|
/linux-6.3-rc2/fs/xfs/ |
A D | xfs_ioctl.c | 991 struct fileattr *fa) in xfs_fill_fsxattr() argument 1030 struct fileattr fa; in xfs_ioc_fsgetxattra() local 1042 struct fileattr *fa) in xfs_fileattr_get() argument 1120 struct fileattr *fa) in xfs_ioctl_setattr_xflags() argument 1159 struct fileattr *fa) in xfs_ioctl_setattr_prepare_dax() argument 1219 struct fileattr *fa) in xfs_ioctl_setattr_check_extsize() argument 1225 if (!fa->fsx_valid) in xfs_ioctl_setattr_check_extsize() 1261 struct fileattr *fa) in xfs_ioctl_setattr_check_cowextsize() argument 1268 if (!fa->fsx_valid) in xfs_ioctl_setattr_check_cowextsize() 1288 if (!fa->fsx_valid) in xfs_ioctl_setattr_check_projid() [all …]
|
A D | xfs_error.c | 415 xfs_failaddr_t fa) in xfs_buf_corruption_error() argument 421 fa, bp->b_ops->name, xfs_buf_daddr(bp)); in xfs_buf_corruption_error() 443 xfs_failaddr_t fa; in xfs_buf_verifier_error() local 446 fa = failaddr ? failaddr : __return_address; in xfs_buf_verifier_error() 447 __xfs_buf_ioerror(bp, error, fa); in xfs_buf_verifier_error() 452 fa, bp->b_ops->name, xfs_buf_daddr(bp), name); in xfs_buf_verifier_error() 495 xfs_failaddr_t fa; in xfs_inode_verifier_error() local 498 fa = failaddr ? failaddr : __return_address; in xfs_inode_verifier_error() 502 fa, ip->i_ino, name); in xfs_inode_verifier_error()
|
/linux-6.3-rc2/fs/fuse/ |
A D | ioctl.c | 451 if (fa->flags_valid) { in fuse_fileattr_get() 457 fileattr_fill_flags(fa, flags); in fuse_fileattr_get() 465 fa->fsx_extsize = xfa.fsx_extsize; in fuse_fileattr_get() 466 fa->fsx_nextents = xfa.fsx_nextents; in fuse_fileattr_get() 467 fa->fsx_projid = xfa.fsx_projid; in fuse_fileattr_get() 481 unsigned int flags = fa->flags; in fuse_fileattr_set() 489 if (fa->flags_valid) { in fuse_fileattr_set() 496 xfa.fsx_xflags = fa->fsx_xflags; in fuse_fileattr_set() 497 xfa.fsx_extsize = fa->fsx_extsize; in fuse_fileattr_set() 498 xfa.fsx_nextents = fa->fsx_nextents; in fuse_fileattr_set() [all …]
|
/linux-6.3-rc2/fs/jfs/ |
A D | ioctl.c | 60 int jfs_fileattr_get(struct dentry *dentry, struct fileattr *fa) in jfs_fileattr_get() argument 68 fileattr_fill_flags(fa, jfs_map_ext2(flags, 0)); in jfs_fileattr_get() 74 struct dentry *dentry, struct fileattr *fa) in jfs_fileattr_set() argument 83 if (fileattr_has_fsx(fa)) in jfs_fileattr_set() 86 flags = jfs_map_ext2(fa->flags, 1); in jfs_fileattr_set()
|
/linux-6.3-rc2/fs/efivarfs/ |
A D | inode.c | 151 efivarfs_fileattr_get(struct dentry *dentry, struct fileattr *fa) in efivarfs_fileattr_get() argument 160 fileattr_fill_flags(fa, flags); in efivarfs_fileattr_get() 167 struct dentry *dentry, struct fileattr *fa) in efivarfs_fileattr_set() argument 171 if (fileattr_has_fsx(fa)) in efivarfs_fileattr_set() 174 if (fa->flags & ~FS_IMMUTABLE_FL) in efivarfs_fileattr_set() 177 if (fa->flags & FS_IMMUTABLE_FL) in efivarfs_fileattr_set()
|
/linux-6.3-rc2/fs/ext2/ |
A D | ioctl.c | 21 int ext2_fileattr_get(struct dentry *dentry, struct fileattr *fa) in ext2_fileattr_get() argument 25 fileattr_fill_flags(fa, ei->i_flags & EXT2_FL_USER_VISIBLE); in ext2_fileattr_get() 31 struct dentry *dentry, struct fileattr *fa) in ext2_fileattr_set() argument 36 if (fileattr_has_fsx(fa)) in ext2_fileattr_set() 44 (fa->flags & EXT2_FL_USER_MODIFIABLE); in ext2_fileattr_set()
|
/linux-6.3-rc2/fs/btrfs/ |
A D | sysfs.c | 149 switch (fa->feature_set) { in can_modify_feature() 164 fa->feature_set); in can_modify_feature() 168 if (set & fa->feature_bit) in can_modify_feature() 170 if (clear & fa->feature_bit) in can_modify_feature() 184 if (features & fa->feature_bit) in btrfs_feature_attr_show() 187 val = can_modify_feature(fa); in btrfs_feature_attr_show() 245 features |= fa->feature_bit; in btrfs_feature_attr_store() 247 features &= ~fa->feature_bit; in btrfs_feature_attr_store() 267 struct btrfs_feature_attr *fa; in btrfs_feature_visible() local 273 if (can_modify_feature(fa)) in btrfs_feature_visible() [all …]
|
/linux-6.3-rc2/fs/reiserfs/ |
A D | ioctl.c | 15 int reiserfs_fileattr_get(struct dentry *dentry, struct fileattr *fa) in reiserfs_fileattr_get() argument 22 fileattr_fill_flags(fa, REISERFS_I(inode)->i_attrs); in reiserfs_fileattr_get() 28 struct dentry *dentry, struct fileattr *fa) in reiserfs_fileattr_set() argument 31 unsigned int flags = fa->flags; in reiserfs_fileattr_set() 41 if (fileattr_has_fsx(fa)) in reiserfs_fileattr_set()
|
/linux-6.3-rc2/fs/ubifs/ |
A D | ioctl.c | 133 int ubifs_fileattr_get(struct dentry *dentry, struct fileattr *fa) in ubifs_fileattr_get() argument 142 fileattr_fill_flags(fa, flags); in ubifs_fileattr_get() 148 struct dentry *dentry, struct fileattr *fa) in ubifs_fileattr_set() argument 151 int flags = fa->flags; in ubifs_fileattr_set() 156 if (fileattr_has_fsx(fa)) in ubifs_fileattr_set()
|
/linux-6.3-rc2/fs/overlayfs/ |
A D | inode.c | 754 err = ovl_security_fileattr(realpath, fa, true); in ovl_real_fileattr_set() 762 struct dentry *dentry, struct fileattr *fa) in ovl_fileattr_set() argument 788 err = ovl_real_fileattr_set(&upperpath, fa); in ovl_fileattr_set() 816 fa->flags |= FS_APPEND_FL; in ovl_fileattr_prot_flags() 817 fa->fsx_xflags |= FS_XFLAG_APPEND; in ovl_fileattr_prot_flags() 820 fa->flags |= FS_IMMUTABLE_FL; in ovl_fileattr_prot_flags() 821 fa->fsx_xflags |= FS_XFLAG_IMMUTABLE; in ovl_fileattr_prot_flags() 829 err = ovl_security_fileattr(realpath, fa, false); in ovl_real_fileattr_get() 833 err = vfs_fileattr_get(realpath->dentry, fa); in ovl_real_fileattr_get() 849 err = ovl_real_fileattr_get(&realpath, fa); in ovl_fileattr_get() [all …]
|