/linux-6.1.9/fs/ |
D | ioctl.c | 464 void fileattr_fill_xflags(struct fileattr *fa, u32 xflags) in fileattr_fill_xflags() argument 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() 469 if (fa->fsx_xflags & FS_XFLAG_IMMUTABLE) in fileattr_fill_xflags() 470 fa->flags |= FS_IMMUTABLE_FL; in fileattr_fill_xflags() 471 if (fa->fsx_xflags & FS_XFLAG_APPEND) in fileattr_fill_xflags() 472 fa->flags |= FS_APPEND_FL; in fileattr_fill_xflags() 473 if (fa->fsx_xflags & FS_XFLAG_SYNC) in fileattr_fill_xflags() 474 fa->flags |= FS_SYNC_FL; in fileattr_fill_xflags() [all …]
|
D | fcntl.c | 864 struct fasync_struct *fa, **fp; in fasync_remove_entry() local 869 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry() 870 if (fa->fa_file != filp) in fasync_remove_entry() 873 write_lock_irq(&fa->fa_lock); in fasync_remove_entry() 874 fa->fa_file = NULL; in fasync_remove_entry() 875 write_unlock_irq(&fa->fa_lock); in fasync_remove_entry() 877 *fp = fa->fa_next; in fasync_remove_entry() 878 call_rcu(&fa->fa_rcu, fasync_free_rcu); in fasync_remove_entry() 912 struct fasync_struct *fa, **fp; in fasync_insert_entry() local 916 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry() [all …]
|
/linux-6.1.9/net/ipv4/ |
D | fib_trie.c | 77 int dst_len, struct fib_alias *fa, in call_fib_entry_notifier() argument 84 .fi = fa->fa_info, in call_fib_entry_notifier() 85 .dscp = fa->fa_dscp, in call_fib_entry_notifier() 86 .type = fa->fa_type, in call_fib_entry_notifier() 87 .tb_id = fa->tb_id, in call_fib_entry_notifier() 94 int dst_len, struct fib_alias *fa, in call_fib_entry_notifiers() argument 101 .fi = fa->fa_info, in call_fib_entry_notifiers() 102 .dscp = fa->fa_dscp, in call_fib_entry_notifiers() 103 .type = fa->fa_type, in call_fib_entry_notifiers() 104 .tb_id = fa->tb_id, in call_fib_entry_notifiers() [all …]
|
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.1.9/include/linux/ |
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.1.9/io_uring/ |
D | advise.c | 67 struct io_fadvise *fa = io_kiocb_to_cmd(req, struct io_fadvise); in io_fadvise_prep() local 72 fa->offset = READ_ONCE(sqe->off); in io_fadvise_prep() 73 fa->len = READ_ONCE(sqe->len); in io_fadvise_prep() 74 fa->advice = READ_ONCE(sqe->fadvise_advice); in io_fadvise_prep() 80 struct io_fadvise *fa = io_kiocb_to_cmd(req, struct io_fadvise); in io_fadvise() local 84 switch (fa->advice) { in io_fadvise() 94 ret = vfs_fadvise(req->file, fa->offset, fa->len, fa->advice); in io_fadvise()
|
/linux-6.1.9/fs/xfs/libxfs/ |
D | xfs_inode_buf.c | 177 xfs_failaddr_t fa; in xfs_inode_from_disk() local 181 fa = xfs_dinode_verify(ip->i_mount, ip->i_ino, from); in xfs_inode_from_disk() 182 if (fa) { in xfs_inode_from_disk() 184 sizeof(*from), fa); in xfs_inode_from_disk() 460 xfs_failaddr_t fa; in xfs_dinode_verify() local 498 fa = xfs_dinode_verify_nrext64(mp, dip); in xfs_dinode_verify() 499 if (fa) in xfs_dinode_verify() 500 return fa; in xfs_dinode_verify() 522 fa = xfs_dinode_verify_forkoff(dip, mp); in xfs_dinode_verify() 523 if (fa) in xfs_dinode_verify() [all …]
|
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()
|
D | xfs_dir2_data.c | 187 xfs_failaddr_t fa; in __xfs_dir3_data_check() local 196 fa = xfs_dir2_data_freefind_verify(hdr, bf, dup, &dfp); in __xfs_dir3_data_check() 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 280 fa = __xfs_dir3_data_check(dp, bp); in xfs_dir3_data_check() 281 if (!fa) in xfs_dir3_data_check() 285 fa); in xfs_dir3_data_check() 344 xfs_failaddr_t fa; in xfs_dir3_data_read_verify() local 350 fa = xfs_dir3_data_verify(bp); in xfs_dir3_data_read_verify() [all …]
|
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() 250 xfs_verifier_error(bp, -EFSCORRUPTED, 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() [all …]
|
D | xfs_inode_fork.c | 135 xfs_failaddr_t fa; in xfs_iformat_extents() local 138 fa = xfs_bmap_validate_extent(ip, whichfork, &new); in xfs_iformat_extents() 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() 702 ip->i_df.if_u1.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data() 715 xfs_failaddr_t fa; in xfs_ifork_verify_local_attr() local [all …]
|
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() 338 xfs_verifier_error(bp, -EFSCORRUPTED, 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() [all …]
|
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() 336 xfs_verifier_error(bp, -EFSCORRUPTED, 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() [all …]
|
D | xfs_bmap_btree.c | 427 xfs_failaddr_t fa; in xfs_bmbt_verify() local 438 fa = xfs_btree_lblock_v5hdr_verify(bp, XFS_RMAP_OWN_UNKNOWN); in xfs_bmbt_verify() 439 if (fa) in xfs_bmbt_verify() 440 return fa; in xfs_bmbt_verify() 461 xfs_failaddr_t fa; in xfs_bmbt_read_verify() local 466 fa = xfs_bmbt_verify(bp); in xfs_bmbt_read_verify() 467 if (fa) in xfs_bmbt_read_verify() 468 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_bmbt_read_verify() 479 xfs_failaddr_t fa; in xfs_bmbt_write_verify() local 481 fa = xfs_bmbt_verify(bp); in xfs_bmbt_write_verify() [all …]
|
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.1.9/fs/xfs/ |
D | xfs_ioctl.c | 991 struct fileattr *fa) in xfs_fill_fsxattr() argument 996 fileattr_fill_xflags(fa, xfs_ip2xflags(ip)); in xfs_fill_fsxattr() 999 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr() 1008 fa->fsx_xflags &= ~(FS_XFLAG_EXTSIZE | in xfs_fill_fsxattr() 1010 fa->fsx_extsize = 0; in xfs_fill_fsxattr() 1012 fa->fsx_extsize = XFS_FSB_TO_B(mp, ip->i_extsize); in xfs_fill_fsxattr() 1017 fa->fsx_cowextsize = XFS_FSB_TO_B(mp, ip->i_cowextsize); in xfs_fill_fsxattr() 1018 fa->fsx_projid = ip->i_projid; in xfs_fill_fsxattr() 1020 fa->fsx_nextents = xfs_iext_count(ifp); in xfs_fill_fsxattr() 1022 fa->fsx_nextents = xfs_ifork_nextents(ifp); in xfs_fill_fsxattr() [all …]
|
D | xfs_error.c | 383 xfs_failaddr_t fa) in xfs_buf_corruption_error() argument 389 fa, bp->b_ops->name, xfs_buf_daddr(bp)); in xfs_buf_corruption_error() 411 xfs_failaddr_t fa; in xfs_buf_verifier_error() local 414 fa = failaddr ? failaddr : __return_address; in xfs_buf_verifier_error() 415 __xfs_buf_ioerror(bp, error, fa); in xfs_buf_verifier_error() 420 fa, bp->b_ops->name, xfs_buf_daddr(bp), name); in xfs_buf_verifier_error() 463 xfs_failaddr_t fa; in xfs_inode_verifier_error() local 466 fa = failaddr ? failaddr : __return_address; in xfs_inode_verifier_error() 470 fa, ip->i_ino, name); in xfs_inode_verifier_error()
|
/linux-6.1.9/fs/fuse/ |
D | ioctl.c | 433 int fuse_fileattr_get(struct dentry *dentry, struct fileattr *fa) in fuse_fileattr_get() argument 445 if (fa->flags_valid) { in fuse_fileattr_get() 451 fileattr_fill_flags(fa, flags); in fuse_fileattr_get() 458 fileattr_fill_xflags(fa, xfa.fsx_xflags); in fuse_fileattr_get() 459 fa->fsx_extsize = xfa.fsx_extsize; in fuse_fileattr_get() 460 fa->fsx_nextents = xfa.fsx_nextents; in fuse_fileattr_get() 461 fa->fsx_projid = xfa.fsx_projid; in fuse_fileattr_get() 462 fa->fsx_cowextsize = xfa.fsx_cowextsize; in fuse_fileattr_get() 471 struct dentry *dentry, struct fileattr *fa) in fuse_fileattr_set() argument 475 unsigned int flags = fa->flags; in fuse_fileattr_set() [all …]
|
/linux-6.1.9/fs/jfs/ |
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.1.9/fs/efivarfs/ |
D | inode.c | 147 efivarfs_fileattr_get(struct dentry *dentry, struct fileattr *fa) in efivarfs_fileattr_get() argument 156 fileattr_fill_flags(fa, flags); in efivarfs_fileattr_get() 163 struct dentry *dentry, struct fileattr *fa) in efivarfs_fileattr_set() argument 167 if (fileattr_has_fsx(fa)) in efivarfs_fileattr_set() 170 if (fa->flags & ~FS_IMMUTABLE_FL) in efivarfs_fileattr_set() 173 if (fa->flags & FS_IMMUTABLE_FL) in efivarfs_fileattr_set()
|
/linux-6.1.9/fs/ext2/ |
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.1.9/fs/overlayfs/ |
D | inode.c | 591 static int ovl_security_fileattr(const struct path *realpath, struct fileattr *fa, in ovl_security_fileattr() argument 603 cmd = fa->fsx_valid ? FS_IOC_FSSETXATTR : FS_IOC_SETFLAGS; in ovl_security_fileattr() 605 cmd = fa->fsx_valid ? FS_IOC_FSGETXATTR : FS_IOC_GETFLAGS; in ovl_security_fileattr() 613 int ovl_real_fileattr_set(const struct path *realpath, struct fileattr *fa) in ovl_real_fileattr_set() argument 617 err = ovl_security_fileattr(realpath, fa, true); in ovl_real_fileattr_set() 621 return vfs_fileattr_set(mnt_user_ns(realpath->mnt), realpath->dentry, fa); in ovl_real_fileattr_set() 625 struct dentry *dentry, struct fileattr *fa) in ovl_fileattr_set() argument 649 err = ovl_set_protattr(inode, upperpath.dentry, fa); in ovl_fileattr_set() 651 err = ovl_real_fileattr_set(&upperpath, fa); in ovl_fileattr_set() 673 static void ovl_fileattr_prot_flags(struct inode *inode, struct fileattr *fa) in ovl_fileattr_prot_flags() argument [all …]
|
/linux-6.1.9/fs/btrfs/ |
D | sysfs.c | 142 static int can_modify_feature(struct btrfs_feature_attr *fa) in can_modify_feature() argument 146 switch (fa->feature_set) { in can_modify_feature() 161 fa->feature_set); in can_modify_feature() 165 if (set & fa->feature_bit) in can_modify_feature() 167 if (clear & fa->feature_bit) in can_modify_feature() 178 struct btrfs_feature_attr *fa = to_btrfs_feature_attr(a); in btrfs_feature_attr_show() local 180 u64 features = get_features(fs_info, fa->feature_set); in btrfs_feature_attr_show() 181 if (features & fa->feature_bit) in btrfs_feature_attr_show() 184 val = can_modify_feature(fa); in btrfs_feature_attr_show() 194 struct btrfs_feature_attr *fa = to_btrfs_feature_attr(a); in btrfs_feature_attr_store() local [all …]
|
/linux-6.1.9/fs/reiserfs/ |
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.1.9/fs/ubifs/ |
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()
|