Home
last modified time | relevance | path

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

12

/fs/xfs/
Dxfs_ioctl.c1114 struct fsxattr *fa) in xfs_fill_fsxattr() argument
1118 simple_fill_fsxattr(fa, xfs_ip2xflags(ip)); in xfs_fill_fsxattr()
1119 fa->fsx_extsize = ip->i_d.di_extsize << ip->i_mount->m_sb.sb_blocklog; in xfs_fill_fsxattr()
1120 fa->fsx_cowextsize = ip->i_d.di_cowextsize << in xfs_fill_fsxattr()
1122 fa->fsx_projid = ip->i_d.di_projid; in xfs_fill_fsxattr()
1124 fa->fsx_nextents = xfs_iext_count(ifp); in xfs_fill_fsxattr()
1126 fa->fsx_nextents = xfs_ifork_nextents(ifp); in xfs_fill_fsxattr()
1135 struct fsxattr fa; in xfs_ioc_fsgetxattr() local
1138 xfs_fill_fsxattr(ip, attr, &fa); in xfs_ioc_fsgetxattr()
1141 if (copy_to_user(arg, &fa, sizeof(fa))) in xfs_ioc_fsgetxattr()
[all …]
Dxfs_error.c359 xfs_failaddr_t fa) in xfs_buf_corruption_error() argument
365 fa, bp->b_ops->name, bp->b_bn); in xfs_buf_corruption_error()
387 xfs_failaddr_t fa; in xfs_buf_verifier_error() local
390 fa = failaddr ? failaddr : __return_address; in xfs_buf_verifier_error()
391 __xfs_buf_ioerror(bp, error, fa); in xfs_buf_verifier_error()
396 fa, bp->b_ops->name, bp->b_bn, name); in xfs_buf_verifier_error()
439 xfs_failaddr_t fa; in xfs_inode_verifier_error() local
442 fa = failaddr ? failaddr : __return_address; in xfs_inode_verifier_error()
446 fa, ip->i_ino, name); in xfs_inode_verifier_error()
Dxfs_dquot_item_recover.c70 xfs_failaddr_t fa; in xlog_recover_dquot_commit_pass2() local
111 fa = xfs_dquot_verify(mp, recddq, dq_f->qlf_id); in xlog_recover_dquot_commit_pass2()
112 if (fa) { in xlog_recover_dquot_commit_pass2()
114 dq_f->qlf_id, fa); in xlog_recover_dquot_commit_pass2()
Dxfs_buf.h204 const struct xfs_buf_ops *ops, xfs_failaddr_t fa);
277 extern void xfs_buf_ioerror_alert(struct xfs_buf *bp, xfs_failaddr_t fa);
280 void __xfs_buf_mark_corrupt(struct xfs_buf *bp, xfs_failaddr_t fa);
Dxfs_buf_item_recover.c446 xfs_failaddr_t fa; in xlog_recover_do_reg_buffer() local
482 fa = NULL; in xlog_recover_do_reg_buffer()
496 fa = xfs_dquot_verify(mp, item->ri_buf[i].i_addr, -1); in xlog_recover_do_reg_buffer()
497 if (fa) { in xlog_recover_do_reg_buffer()
500 fa, bp->b_bn); in xlog_recover_do_reg_buffer()
/fs/xfs/libxfs/
Dxfs_inode_buf.c198 xfs_failaddr_t fa; in xfs_inode_from_disk() local
203 fa = xfs_dinode_verify(ip->i_mount, ip->i_ino, from); in xfs_inode_from_disk()
204 if (fa) { in xfs_inode_from_disk()
206 sizeof(*from), fa); in xfs_inode_from_disk()
443 xfs_failaddr_t fa; in xfs_dinode_verify() local
493 fa = xfs_dinode_verify_forkoff(dip, mp); in xfs_dinode_verify()
494 if (fa) in xfs_dinode_verify()
495 return fa; in xfs_dinode_verify()
509 fa = xfs_dinode_verify_fork(dip, mp, XFS_DATA_FORK); in xfs_dinode_verify()
510 if (fa) in xfs_dinode_verify()
[all …]
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_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_refcount_btree.c206 xfs_failaddr_t fa; in xfs_refcountbt_verify() local
214 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_refcountbt_verify()
215 if (fa) in xfs_refcountbt_verify()
216 return fa; in xfs_refcountbt_verify()
232 xfs_failaddr_t fa; in xfs_refcountbt_read_verify() local
237 fa = xfs_refcountbt_verify(bp); in xfs_refcountbt_read_verify()
238 if (fa) in xfs_refcountbt_read_verify()
239 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_refcountbt_read_verify()
250 xfs_failaddr_t fa; in xfs_refcountbt_write_verify() local
252 fa = xfs_refcountbt_verify(bp); in xfs_refcountbt_write_verify()
[all …]
Dxfs_inode_fork.c136 xfs_failaddr_t fa; in xfs_iformat_extents() local
139 fa = xfs_bmap_validate_extent(ip, whichfork, &new); in xfs_iformat_extents()
140 if (fa) { in xfs_iformat_extents()
143 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 …]
Dxfs_alloc_btree.c294 xfs_failaddr_t fa; in xfs_allocbt_verify() local
302 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_allocbt_verify()
303 if (fa) in xfs_allocbt_verify()
304 return fa; in xfs_allocbt_verify()
332 xfs_failaddr_t fa; in xfs_allocbt_read_verify() local
337 fa = xfs_allocbt_verify(bp); in xfs_allocbt_read_verify()
338 if (fa) in xfs_allocbt_read_verify()
339 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_allocbt_read_verify()
350 xfs_failaddr_t fa; in xfs_allocbt_write_verify() local
352 fa = xfs_allocbt_verify(bp); in xfs_allocbt_write_verify()
[all …]
Dxfs_rmap_btree.c294 xfs_failaddr_t fa; in xfs_rmapbt_verify() local
314 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_rmapbt_verify()
315 if (fa) in xfs_rmapbt_verify()
316 return fa; in xfs_rmapbt_verify()
332 xfs_failaddr_t fa; in xfs_rmapbt_read_verify() local
337 fa = xfs_rmapbt_verify(bp); in xfs_rmapbt_read_verify()
338 if (fa) in xfs_rmapbt_read_verify()
339 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_rmapbt_read_verify()
350 xfs_failaddr_t fa; in xfs_rmapbt_write_verify() local
352 fa = xfs_rmapbt_verify(bp); in xfs_rmapbt_write_verify()
[all …]
Dxfs_bmap_btree.c425 xfs_failaddr_t fa; in xfs_bmbt_verify() local
436 fa = xfs_btree_lblock_v5hdr_verify(bp, XFS_RMAP_OWN_UNKNOWN); in xfs_bmbt_verify()
437 if (fa) in xfs_bmbt_verify()
438 return fa; in xfs_bmbt_verify()
459 xfs_failaddr_t fa; in xfs_bmbt_read_verify() local
464 fa = xfs_bmbt_verify(bp); in xfs_bmbt_read_verify()
465 if (fa) in xfs_bmbt_read_verify()
466 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_bmbt_read_verify()
477 xfs_failaddr_t fa; in xfs_bmbt_write_verify() local
479 fa = xfs_bmbt_verify(bp); in xfs_bmbt_write_verify()
[all …]
Dxfs_ialloc_btree.c279 xfs_failaddr_t fa; in xfs_inobt_verify() local
296 fa = xfs_btree_sblock_v5hdr_verify(bp); in xfs_inobt_verify()
297 if (fa) in xfs_inobt_verify()
298 return fa; in xfs_inobt_verify()
314 xfs_failaddr_t fa; in xfs_inobt_read_verify() local
319 fa = xfs_inobt_verify(bp); in xfs_inobt_read_verify()
320 if (fa) in xfs_inobt_read_verify()
321 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_inobt_read_verify()
332 xfs_failaddr_t fa; in xfs_inobt_write_verify() local
334 fa = xfs_inobt_verify(bp); in xfs_inobt_write_verify()
[all …]
Dxfs_attr_remote.c163 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()
Dxfs_dquot_buf.c186 xfs_failaddr_t fa; in xfs_dquot_buf_verify() local
216 fa = xfs_dqblk_verify(mp, &dqb[i], id + i); in xfs_dquot_buf_verify()
217 if (fa) { in xfs_dquot_buf_verify()
221 sizeof(struct xfs_dqblk), fa); in xfs_dquot_buf_verify()
222 return fa; in xfs_dquot_buf_verify()
Dxfs_dir2_block.c72 xfs_failaddr_t fa; in xfs_dir3_block_read_verify() local
78 fa = xfs_dir3_block_verify(bp); in xfs_dir3_block_read_verify()
79 if (fa) in xfs_dir3_block_read_verify()
80 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_dir3_block_read_verify()
91 xfs_failaddr_t fa; in xfs_dir3_block_write_verify() local
93 fa = xfs_dir3_block_verify(bp); in xfs_dir3_block_write_verify()
94 if (fa) { in xfs_dir3_block_write_verify()
95 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_dir3_block_write_verify()
141 xfs_failaddr_t fa; in xfs_dir3_block_read() local
150 fa = xfs_dir3_block_header_check(dp, *bpp); in xfs_dir3_block_read()
[all …]
Dxfs_dir2_leaf.c124 xfs_failaddr_t fa; in xfs_dir3_leaf_check() local
126 fa = xfs_dir3_leaf1_check(dp, bp); in xfs_dir3_leaf_check()
127 if (!fa) in xfs_dir3_leaf_check()
131 fa); in xfs_dir3_leaf_check()
191 xfs_failaddr_t fa; in xfs_dir3_leaf_verify() local
193 fa = xfs_da3_blkinfo_verify(bp, bp->b_addr); in xfs_dir3_leaf_verify()
194 if (fa) in xfs_dir3_leaf_verify()
195 return fa; in xfs_dir3_leaf_verify()
206 xfs_failaddr_t fa; in xfs_dir3_leaf_read_verify() local
212 fa = xfs_dir3_leaf_verify(bp); in xfs_dir3_leaf_read_verify()
[all …]
Dxfs_dir2_node.c84 xfs_failaddr_t fa; in xfs_dir3_leaf_check() local
86 fa = xfs_dir3_leafn_check(dp, bp); in xfs_dir3_leaf_check()
87 if (!fa) in xfs_dir3_leaf_check()
91 fa); in xfs_dir3_leaf_check()
129 xfs_failaddr_t fa; in xfs_dir3_free_read_verify() local
135 fa = xfs_dir3_free_verify(bp); in xfs_dir3_free_read_verify()
136 if (fa) in xfs_dir3_free_read_verify()
137 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_dir3_free_read_verify()
148 xfs_failaddr_t fa; in xfs_dir3_free_write_verify() local
150 fa = xfs_dir3_free_verify(bp); in xfs_dir3_free_write_verify()
[all …]
Dxfs_alloc.c633 xfs_failaddr_t fa; in xfs_agfl_read_verify() local
647 fa = xfs_agfl_verify(bp); in xfs_agfl_read_verify()
648 if (fa) in xfs_agfl_read_verify()
649 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_agfl_read_verify()
659 xfs_failaddr_t fa; in xfs_agfl_write_verify() local
665 fa = xfs_agfl_verify(bp); in xfs_agfl_write_verify()
666 if (fa) { in xfs_agfl_write_verify()
667 xfs_verifier_error(bp, -EFSCORRUPTED, fa); in xfs_agfl_write_verify()
2904 xfs_failaddr_t fa; in xfs_agf_read_verify() local
2910 fa = xfs_agf_verify(bp); in xfs_agf_read_verify()
[all …]
/fs/
Dfcntl.c881 struct fasync_struct *fa, **fp; in fasync_remove_entry() local
886 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry()
887 if (fa->fa_file != filp) in fasync_remove_entry()
890 write_lock_irq(&fa->fa_lock); in fasync_remove_entry()
891 fa->fa_file = NULL; in fasync_remove_entry()
892 write_unlock_irq(&fa->fa_lock); in fasync_remove_entry()
894 *fp = fa->fa_next; in fasync_remove_entry()
895 call_rcu(&fa->fa_rcu, fasync_free_rcu); in fasync_remove_entry()
929 struct fasync_struct *fa, **fp; in fasync_insert_entry() local
933 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry()
[all …]
Dinode.c2341 struct fsxattr *fa) in vfs_ioc_fssetxattr_check() argument
2347 if ((old_fa->fsx_xflags ^ fa->fsx_xflags) & in vfs_ioc_fssetxattr_check()
2358 if (old_fa->fsx_projid != fa->fsx_projid) in vfs_ioc_fssetxattr_check()
2360 if ((old_fa->fsx_xflags ^ fa->fsx_xflags) & in vfs_ioc_fssetxattr_check()
2366 if ((fa->fsx_xflags & FS_XFLAG_EXTSIZE) && !S_ISREG(inode->i_mode)) in vfs_ioc_fssetxattr_check()
2369 if ((fa->fsx_xflags & FS_XFLAG_EXTSZINHERIT) && in vfs_ioc_fssetxattr_check()
2373 if ((fa->fsx_xflags & FS_XFLAG_COWEXTSIZE) && in vfs_ioc_fssetxattr_check()
2381 if ((fa->fsx_xflags & FS_XFLAG_DAX) && in vfs_ioc_fssetxattr_check()
2386 if (fa->fsx_extsize == 0) in vfs_ioc_fssetxattr_check()
2387 fa->fsx_xflags &= ~(FS_XFLAG_EXTSIZE | FS_XFLAG_EXTSZINHERIT); in vfs_ioc_fssetxattr_check()
[all …]
/fs/btrfs/
Dsysfs.c116 static int can_modify_feature(struct btrfs_feature_attr *fa) in can_modify_feature() argument
120 switch (fa->feature_set) { in can_modify_feature()
135 fa->feature_set); in can_modify_feature()
139 if (set & fa->feature_bit) in can_modify_feature()
141 if (clear & fa->feature_bit) in can_modify_feature()
152 struct btrfs_feature_attr *fa = to_btrfs_feature_attr(a); in btrfs_feature_attr_show() local
154 u64 features = get_features(fs_info, fa->feature_set); in btrfs_feature_attr_show()
155 if (features & fa->feature_bit) in btrfs_feature_attr_show()
158 val = can_modify_feature(fa); in btrfs_feature_attr_show()
168 struct btrfs_feature_attr *fa = to_btrfs_feature_attr(a); in btrfs_feature_attr_store() local
[all …]
/fs/ext4/
Dioctl.c781 static void ext4_fill_fsxattr(struct inode *inode, struct fsxattr *fa) in ext4_fill_fsxattr() argument
785 simple_fill_fsxattr(fa, ext4_iflags_to_xflags(ei->i_flags & in ext4_fill_fsxattr()
789 fa->fsx_projid = from_kprojid(&init_user_ns, ei->i_projid); in ext4_fill_fsxattr()
1256 struct fsxattr fa; in __ext4_ioctl() local
1258 ext4_fill_fsxattr(inode, &fa); in __ext4_ioctl()
1261 &fa, sizeof(fa))) in __ext4_ioctl()
1267 struct fsxattr fa, old_fa; in __ext4_ioctl() local
1270 if (copy_from_user(&fa, (struct fsxattr __user *)arg, in __ext4_ioctl()
1271 sizeof(fa))) in __ext4_ioctl()
1278 if (fa.fsx_xflags & ~EXT4_SUPPORTED_FS_XFLAGS) in __ext4_ioctl()
[all …]
/fs/xfs/scrub/
Dinode.c76 xfs_failaddr_t fa; in xchk_inode_extsize() local
78 fa = xfs_inode_validate_extsize(sc->mp, be32_to_cpu(dip->di_extsize), in xchk_inode_extsize()
80 if (fa) in xchk_inode_extsize()
99 xfs_failaddr_t fa; in xchk_inode_cowextsize() local
101 fa = xfs_inode_validate_cowextsize(sc->mp, in xchk_inode_cowextsize()
104 if (fa) in xchk_inode_cowextsize()

12