Home
last modified time | relevance | path

Searched refs:test_opt (Results 1 – 25 of 26) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_hdr_options.c69 static void write_test_option(const struct bpf_test_option *test_opt, in option_total_len()
74 data[offset++] = test_opt->flags; in write_test_option()
75 if (TEST_OPTION_FLAGS(test_opt->flags, OPTION_MAX_DELACK_MS)) in write_test_option()
76 data[offset++] = test_opt->max_delack_ms; in write_test_option()
78 if (TEST_OPTION_FLAGS(test_opt->flags, OPTION_RAND)) in write_test_option()
79 data[offset++] = test_opt->rand; in write_test_option()
83 const struct bpf_test_option *test_opt) in write_test_option()
93 write_opt.exprm.len = option_total_len(test_opt->flags); in store_option()
96 write_test_option(test_opt, write_opt.exprm.data); in store_option()
101 write_opt.regular.len = option_total_len(test_opt in store_option()
72 write_test_option(const struct bpf_test_option * test_opt,__u8 * data) write_test_option() argument
86 store_option(struct bpf_sock_ops * skops,const struct bpf_test_option * test_opt) store_option() argument
131 load_option(struct bpf_sock_ops * skops,struct bpf_test_option * test_opt,bool from_syn) load_option() argument
163 struct bpf_test_option test_opt = {}; synack_opt_len() local
[all...]
/linux/fs/ext4/
H A Dxattr_user.c18 return test_opt(dentry->d_sb, XATTR_USER); in ext4_xattr_user_list()
26 if (!test_opt(inode->i_sb, XATTR_USER)) in ext4_xattr_user_get()
39 if (!test_opt(inode->i_sb, XATTR_USER)) in ext4_xattr_user_set()
H A Dxattr_hurd.c18 return test_opt(dentry->d_sb, XATTR_USER); in ext4_xattr_hurd_list()
26 if (!test_opt(inode->i_sb, XATTR_USER)) in ext4_xattr_hurd_get()
40 if (!test_opt(inode->i_sb, XATTR_USER)) in ext4_xattr_hurd_set()
H A Dext4_jbd2.c17 test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA || in ext4_inode_journal_mode()
19 !test_opt(inode->i_sb, DELALLOC))) { in ext4_inode_journal_mode()
25 if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_ORDERED_DATA) in ext4_inode_journal_mode()
27 if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_WRITEBACK_DATA) in ext4_inode_journal_mode()
288 test_opt(inode->i_sb, DATA_FLAGS)); in __ext4_forget()
308 if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA || in __ext4_forget()
H A Dsuper.c701 bool continue_fs = !force_ro && test_opt(sb, ERRORS_CONT); in ext4_handle_error()
704 if (test_opt(sb, WARN_ON_ERROR)) in ext4_handle_error()
733 if (test_opt(sb, ERRORS_PANIC) && !system_going_down()) { in ext4_handle_error()
1078 if (test_opt(sb, ERRORS_CONT)) { in __ext4_grp_locked_error()
1079 if (test_opt(sb, WARN_ON_ERROR)) in __ext4_grp_locked_error()
2690 test_opt(sb, USRQUOTA)); in ext4_check_quota_consistency()
2693 test_opt(sb, GRPQUOTA)); in ext4_check_quota_consistency()
2827 test_opt(sb, DATA_FLAGS)) { in ext4_check_opt_consistency()
2843 (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA)) { in ext4_check_opt_consistency()
3032 if (test_opt(sb, ERRORS_RO) && def_errors != EXT4_ERRORS_RO) in _ext4_show_options()
[all …]
H A Dext4_jbd2.h392 if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) in ext4_free_data_revoke_credits()
414 if (!test_opt(inode->i_sb, DIOREAD_NOLOCK)) in ext4_should_dioread_nolock()
423 if (!test_opt(inode->i_sb, DELALLOC)) in ext4_should_dioread_nolock()
H A Dresize.c147 if (test_opt(sb, DEBUG)) in verify_group_input()
401 if (test_opt(sb, DEBUG)) { in ext4_alloc_group_tables()
834 if (test_opt(sb, DEBUG)) in add_new_gdb()
1525 if (test_opt(sb, DEBUG)) in ext4_update_super()
1668 if (!test_opt(sb, INIT_INODE_TABLE)) in ext4_setup_next_flex_gd()
1815 if (test_opt(sb, DEBUG)) in ext4_group_extend_no_check()
1845 if (test_opt(sb, DEBUG)) in ext4_group_extend()
H A Dorphan.c330 if (test_opt(sb, DEBUG)) in ext4_process_orphan()
351 if (test_opt(sb, DEBUG)) in ext4_process_orphan()
H A Dblock_validity.c264 if (test_opt(sb, DEBUG)) in ext4_setup_system_zone()
H A Dballoc.c711 if (test_opt(sb, DISCARD)) { in ext4_should_retry_alloc()
996 if (test_opt(inode->i_sb, DELALLOC)) in ext4_inode_to_goal_block()
H A Dmigrate.c630 if (test_opt(inode->i_sb, DELALLOC)) in ext4_ind_migrate()
H A Dinode.c3373 (test_opt(inode->i_sb, DELALLOC) || in ext4_bmap()
4017 else if (test_opt(inode->i_sb, DELALLOC)) in ext4_set_aops()
4644 if (inode->i_size == 0 && !test_opt(inode->i_sb, NO_AUTO_DA_ALLOC)) in ext4_truncate()
4798 if (!(test_opt(inode->i_sb, NO_UID32))) { in ext4_fill_raw_inode()
5135 if (test_opt(inode->i_sb, DAX_ALWAYS)) in ext4_should_enable_dax()
5432 if (!(test_opt(inode->i_sb, NO_UID32))) { in __ext4_iget()
6915 if (test_opt(inode->i_sb, DELALLOC) && in ext4_page_mkwrite()
H A Dialloc.c983 } else if (test_opt(sb, GRPID)) { in __ext4_new_inode()
H A Dext4.h1327 #define test_opt(sb, opt) (EXT4_SB(sb)->s_mount_opt & \ macro
3729 return (test_opt(sb, QUOTA) || ext4_has_feature_quota(sb)); in ext4_quota_capable()
H A Dfast_commit.c670 if (test_opt(sb, BARRIER) && is_tail) in ext4_fc_submit_bh()
H A Dmballoc.c4033 if (test_opt(sb, DISCARD)) { in ext4_process_freed_data()
6632 if (test_opt(sb, DISCARD)) { in ext4_mb_clear_bb()
/linux/fs/ext2/
H A Dxattr_user.c17 return test_opt(dentry->d_sb, XATTR_USER); in ext2_xattr_user_list()
25 if (!test_opt(inode->i_sb, XATTR_USER)) in ext2_xattr_user_get()
38 if (!test_opt(inode->i_sb, XATTR_USER)) in ext2_xattr_user_set()
H A Dioctl.c90 if (test_opt(inode->i_sb, RESERVATION) in ext2_ioctl()
99 if (!test_opt(inode->i_sb, RESERVATION) ||!S_ISREG(inode->i_mode)) in ext2_ioctl()
/linux/fs/f2fs/
H A Dsuper.c513 if (test_opt(sbi, RESERVE_ROOT) && in limit_reserve_root()
519 if (test_opt(sbi, RESERVE_NODE) && in limit_reserve_root()
525 if (!test_opt(sbi, RESERVE_ROOT) && !test_opt(sbi, RESERVE_NODE) && in limit_reserve_root()
1307 usrquota = test_opt(sbi, USRQUOTA) || in f2fs_check_quota_consistency()
1309 grpquota = test_opt(sbi, GRPQUOTA) || in f2fs_check_quota_consistency()
1311 prjquota = test_opt(sbi, PRJQUOTA) || in f2fs_check_quota_consistency()
1515 if (test_opt(sbi, RESERVE_ROOT) && in f2fs_check_opt_consistency()
1524 if (test_opt(sbi, RESERVE_NODE) && in f2fs_check_opt_consistency()
1586 if (!ctx_test_opt(ctx, F2FS_MOUNT_INLINE_XATTR) && !test_opt(sbi, INLINE_XATTR)) { in f2fs_check_opt_consistency()
1775 !test_opt(sbi, READ_EXTENT_CACHE)) { in f2fs_sanity_check_options()
[all …]
/linux/fs/erofs/
H A Dsuper.c165 if (!dif->dax_dev && test_opt(&sbi->opt, DAX_ALWAYS)) { in erofs_init_device()
206 if (test_opt(&sbi->opt, DAX_ALWAYS) && !sbi->dif0.dax_dev) { in erofs_scan_devices()
662 if (!sbi->domain_id && test_opt(&sbi->opt, INODE_SHARE)) { in erofs_fc_fill_super()
666 if (test_opt(&sbi->opt, DAX_ALWAYS) && test_opt(&sbi->opt, INODE_SHARE)) { in erofs_fc_fill_super()
731 if (test_opt(&sbi->opt, DAX_ALWAYS) && sbi->blkszbits != PAGE_SHIFT) { in erofs_fc_fill_super()
735 if (test_opt(&sbi->opt, INODE_SHARE) && !erofs_sb_has_ishare_xattrs(sbi)) { in erofs_fc_fill_super()
739 if (test_opt(&sbi->opt, INODE_SHARE)) in erofs_fc_fill_super()
746 if (test_opt(&sbi->opt, POSIX_ACL)) in erofs_fc_fill_super()
846 if (test_opt(&new_sbi->opt, POSIX_ACL)) in erofs_fc_reconfigure()
1103 seq_puts(seq, test_opt(opt, XATTR_USER) ? in erofs_show_options()
[all …]
H A Dxattr.c408 return test_opt(&EROFS_SB(dentry->d_sb)->opt, XATTR_USER); in erofs_xattr_user_list()
421 !test_opt(&EROFS_I_SB(inode)->opt, XATTR_USER)) in erofs_xattr_generic_get()
626 if (!test_opt(&sbi->opt, INODE_SHARE)) in erofs_xattr_fill_inode_fingerprint()
H A Dfileio.c54 if (test_opt(&EROFS_SB(rq->sb)->opt, DIRECT_IO) && in erofs_fileio_rq_submit()
H A Dinternal.h160 #define test_opt(opt, option) ((opt)->mount_opt & EROFS_MOUNT_##option) macro
/linux/fs/qnx6/
H A Dqnx6.h71 #define test_opt(sb, opt) (QNX6_SB(sb)->s_mount_opt & \ macro
H A Ddir.c100 if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) != in qnx6_dir_longfilename()

12