Home
last modified time | relevance | path

Searched refs:fa (Results 1 – 25 of 143) sorted by relevance

123456

/linux-6.6.21/fs/
Dioctl.c465 void fileattr_fill_xflags(struct fileattr *fa, u32 xflags) in fileattr_fill_xflags() argument
467 memset(fa, 0, sizeof(*fa)); in fileattr_fill_xflags()
468 fa->fsx_valid = true; in fileattr_fill_xflags()
469 fa->fsx_xflags = xflags; in fileattr_fill_xflags()
470 if (fa->fsx_xflags & FS_XFLAG_IMMUTABLE) in fileattr_fill_xflags()
471 fa->flags |= FS_IMMUTABLE_FL; in fileattr_fill_xflags()
472 if (fa->fsx_xflags & FS_XFLAG_APPEND) in fileattr_fill_xflags()
473 fa->flags |= FS_APPEND_FL; in fileattr_fill_xflags()
474 if (fa->fsx_xflags & FS_XFLAG_SYNC) in fileattr_fill_xflags()
475 fa->flags |= FS_SYNC_FL; in fileattr_fill_xflags()
[all …]
Dfcntl.c866 struct fasync_struct *fa, **fp; in fasync_remove_entry() local
871 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry()
872 if (fa->fa_file != filp) in fasync_remove_entry()
875 write_lock_irq(&fa->fa_lock); in fasync_remove_entry()
876 fa->fa_file = NULL; in fasync_remove_entry()
877 write_unlock_irq(&fa->fa_lock); in fasync_remove_entry()
879 *fp = fa->fa_next; in fasync_remove_entry()
880 call_rcu(&fa->fa_rcu, fasync_free_rcu); in fasync_remove_entry()
914 struct fasync_struct *fa, **fp; in fasync_insert_entry() local
918 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry()
[all …]
/linux-6.6.21/include/linux/
Dfileattr.h36 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.6.21/net/ipv4/
Dfib_trie.c77 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 …]
Dfib_lookup.h29 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.6.21/io_uring/
Dadvise.c65 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.6.21/drivers/net/ethernet/sfc/
Dtc.c851 const struct flow_action_entry *fa; in efx_tc_rule_is_lhs_rule() local
854 flow_action_for_each(i, fa, &fr->action) { in efx_tc_rule_is_lhs_rule()
855 switch (fa->id) { in efx_tc_rule_is_lhs_rule()
884 const struct flow_action_entry *fa; in efx_tc_flower_handle_lhs_actions() local
888 flow_action_for_each(i, fa, &fr->action) { in efx_tc_flower_handle_lhs_actions()
897 switch (fa->id) { in efx_tc_flower_handle_lhs_actions()
899 if (!fa->chain_index) { in efx_tc_flower_handle_lhs_actions()
903 rid = efx_tc_get_recirc_id(efx, fa->chain_index, in efx_tc_flower_handle_lhs_actions()
910 if (fa->hw_stats) { in efx_tc_flower_handle_lhs_actions()
913 if (!(fa->hw_stats & FLOW_ACTION_HW_STATS_DELAYED)) { in efx_tc_flower_handle_lhs_actions()
[all …]
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_inode_buf.c177 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()
461 xfs_failaddr_t fa; in xfs_dinode_verify() local
499 fa = xfs_dinode_verify_nrext64(mp, dip); in xfs_dinode_verify()
500 if (fa) in xfs_dinode_verify()
501 return fa; in xfs_dinode_verify()
526 fa = xfs_dinode_verify_forkoff(dip, mp); in xfs_dinode_verify()
527 if (fa) in xfs_dinode_verify()
[all …]
Dxfs_symlink_remote.c116 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()
Dxfs_dir2_data.c187 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 …]
Dxfs_inode_fork.c135 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()
144 fa, &new); in xfs_iformat_extents()
702 xfs_failaddr_t fa = NULL; in xfs_ifork_verify_local_data() local
706 fa = xfs_dir2_sf_verify(ip); in xfs_ifork_verify_local_data()
709 fa = xfs_symlink_shortform_verify(ip); in xfs_ifork_verify_local_data()
715 if (fa) { in xfs_ifork_verify_local_data()
717 ip->i_df.if_u1.if_data, ip->i_df.if_bytes, fa); in xfs_ifork_verify_local_data()
[all …]
Dxfs_refcount_btree.c215 xfs_failaddr_t fa; in xfs_refcountbt_verify() local
223 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_refcountbt_verify()
224 if (fa) in xfs_refcountbt_verify()
225 return fa; in xfs_refcountbt_verify()
241 xfs_failaddr_t fa; in xfs_refcountbt_read_verify() local
246 fa = xfs_refcountbt_verify(bp); in xfs_refcountbt_read_verify()
247 if (fa) in xfs_refcountbt_read_verify()
248 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_refcountbt_read_verify()
259 xfs_failaddr_t fa; in xfs_refcountbt_write_verify() local
261 fa = xfs_refcountbt_verify(bp); in xfs_refcountbt_write_verify()
[all …]
Dxfs_alloc_btree.c300 xfs_failaddr_t fa; in xfs_allocbt_verify() local
308 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_allocbt_verify()
309 if (fa) in xfs_allocbt_verify()
310 return fa; in xfs_allocbt_verify()
338 xfs_failaddr_t fa; in xfs_allocbt_read_verify() local
343 fa = xfs_allocbt_verify(bp); in xfs_allocbt_read_verify()
344 if (fa) in xfs_allocbt_read_verify()
345 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_allocbt_read_verify()
356 xfs_failaddr_t fa; in xfs_allocbt_write_verify() local
358 fa = xfs_allocbt_verify(bp); in xfs_allocbt_write_verify()
[all …]
Dxfs_bmap_btree.c416 xfs_failaddr_t fa; in xfs_bmbt_verify() local
427 fa = xfs_btree_lblock_v5hdr_verify(bp, XFS_RMAP_OWN_UNKNOWN); in xfs_bmbt_verify()
428 if (fa) in xfs_bmbt_verify()
429 return fa; in xfs_bmbt_verify()
450 xfs_failaddr_t fa; in xfs_bmbt_read_verify() local
455 fa = xfs_bmbt_verify(bp); in xfs_bmbt_read_verify()
456 if (fa) in xfs_bmbt_read_verify()
457 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_bmbt_read_verify()
468 xfs_failaddr_t fa; in xfs_bmbt_write_verify() local
470 fa = xfs_bmbt_verify(bp); in xfs_bmbt_write_verify()
[all …]
Dxfs_rmap_btree.c323 xfs_failaddr_t fa; in xfs_rmapbt_verify() local
343 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_rmapbt_verify()
344 if (fa) in xfs_rmapbt_verify()
345 return fa; in xfs_rmapbt_verify()
361 xfs_failaddr_t fa; in xfs_rmapbt_read_verify() local
366 fa = xfs_rmapbt_verify(bp); in xfs_rmapbt_read_verify()
367 if (fa) in xfs_rmapbt_read_verify()
368 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_rmapbt_read_verify()
379 xfs_failaddr_t fa; in xfs_rmapbt_write_verify() local
381 fa = xfs_rmapbt_verify(bp); in xfs_rmapbt_write_verify()
[all …]
/linux-6.6.21/fs/xfs/
Dxfs_ioctl.c991 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 …]
Dxfs_dquot_item_recover.c72 xfs_failaddr_t fa; in xlog_recover_dquot_commit_pass2() local
113 fa = xfs_dquot_verify(mp, recddq, dq_f->qlf_id); in xlog_recover_dquot_commit_pass2()
114 if (fa) { in xlog_recover_dquot_commit_pass2()
116 dq_f->qlf_id, fa); in xlog_recover_dquot_commit_pass2()
157 fa = xfs_dqblk_verify(log->l_mp, dqb, dq_f->qlf_id); in xlog_recover_dquot_commit_pass2()
158 if (fa) { in xlog_recover_dquot_commit_pass2()
164 fa, dq_f->qlf_id); in xlog_recover_dquot_commit_pass2()
Dxfs_error.c415 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.6.21/fs/fuse/
Dioctl.c444 int fuse_fileattr_get(struct dentry *dentry, struct fileattr *fa) in fuse_fileattr_get() argument
456 if (fa->flags_valid) { in fuse_fileattr_get()
462 fileattr_fill_flags(fa, flags); in fuse_fileattr_get()
469 fileattr_fill_xflags(fa, xfa.fsx_xflags); in fuse_fileattr_get()
470 fa->fsx_extsize = xfa.fsx_extsize; in fuse_fileattr_get()
471 fa->fsx_nextents = xfa.fsx_nextents; in fuse_fileattr_get()
472 fa->fsx_projid = xfa.fsx_projid; in fuse_fileattr_get()
473 fa->fsx_cowextsize = xfa.fsx_cowextsize; in fuse_fileattr_get()
482 struct dentry *dentry, struct fileattr *fa) in fuse_fileattr_set() argument
486 unsigned int flags = fa->flags; in fuse_fileattr_set()
[all …]
/linux-6.6.21/fs/jfs/
Dioctl.c60 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.6.21/fs/efivarfs/
Dinode.c151 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.6.21/fs/ext2/
Dioctl.c21 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.6.21/fs/reiserfs/
Dioctl.c15 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.6.21/fs/btrfs/
Dsysfs.c145 static int can_modify_feature(struct btrfs_feature_attr *fa) in can_modify_feature() argument
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()
181 struct btrfs_feature_attr *fa = to_btrfs_feature_attr(a); in btrfs_feature_attr_show() local
183 u64 features = get_features(fs_info, fa->feature_set); in btrfs_feature_attr_show()
184 if (features & fa->feature_bit) in btrfs_feature_attr_show()
187 val = can_modify_feature(fa); in btrfs_feature_attr_show()
197 struct btrfs_feature_attr *fa = to_btrfs_feature_attr(a); in btrfs_feature_attr_store() local
[all …]
/linux-6.6.21/fs/ubifs/
Dioctl.c133 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()

123456