Home
last modified time | relevance | path

Searched refs:test_opt (Results 1 – 25 of 39) 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()
280 test_opt(inode->i_sb, DATA_FLAGS)); in __ext4_forget()
300 if (test_opt(inode->i_sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA || in __ext4_forget()
H A Dfsync.c91 if (test_opt(inode->i_sb, BARRIER)) in ext4_fsync_nojournal()
H A Dpage-io.c196 if (test_opt(sb, DATA_ERR_ABORT)) in ext4_end_io_end()
242 if (test_opt(io_end->inode->i_sb, DATA_ERR_ABORT) && in ext4_io_end_defer_completion()
H A Dorphan.c329 if (test_opt(sb, DEBUG)) in ext4_process_orphan()
350 if (test_opt(sb, DEBUG)) in ext4_process_orphan()
H A Dblock_validity.c264 if (test_opt(sb, DEBUG)) in ext4_setup_system_zone()
/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 Dsuper.c75 if (test_opt(sb, ERRORS_PANIC)) in ext2_error()
77 if (!sb_rdonly(sb) && test_opt(sb, ERRORS_RO)) { in ext2_error()
274 if (test_opt(sb, MINIX_DF)) in ext2_show_options()
276 if (test_opt(sb, GRPID)) in ext2_show_options()
278 if (!test_opt(sb, GRPID) && (def_mount_opts & EXT2_DEFM_BSDGROUPS)) in ext2_show_options()
290 if (test_opt(sb, ERRORS_RO)) { in ext2_show_options()
298 if (test_opt(sb, ERRORS_CONT)) in ext2_show_options()
300 if (test_opt(sb, ERRORS_PANIC)) in ext2_show_options()
302 if (test_opt(sb, NO_UID32)) in ext2_show_options()
304 if (test_opt(sb, DEBUG)) in ext2_show_options()
[all …]
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()
H A Dialloc.c443 if (test_opt(sb, OLDALLOC)) in ext2_new_inode()
540 if (test_opt(sb, GRPID)) { in ext2_new_inode()
H A Dinode.c1373 if (test_opt(inode->i_sb, DAX) && S_ISREG(inode->i_mode)) in ext2_set_inode_flags()
1416 if (!(test_opt (inode->i_sb, NO_UID32))) { in ext2_iget()
1533 if (!(test_opt(sb, NO_UID32))) { in __ext2_write_inode()
/linux/fs/f2fs/
H A Dsuper.c458 if (test_opt(sbi, RESERVE_ROOT) && in limit_reserve_root()
464 if (test_opt(sbi, RESERVE_NODE) && in limit_reserve_root()
470 if (!test_opt(sbi, RESERVE_ROOT) && !test_opt(sbi, RESERVE_NODE) && in limit_reserve_root()
1255 usrquota = test_opt(sbi, USRQUOTA) || in f2fs_check_quota_consistency()
1257 grpquota = test_opt(sbi, GRPQUOTA) || in f2fs_check_quota_consistency()
1259 prjquota = test_opt(sbi, PRJQUOTA) || in f2fs_check_quota_consistency()
1463 if (test_opt(sbi, RESERVE_ROOT) && in f2fs_check_opt_consistency()
1471 if (test_opt(sbi, RESERVE_NODE) && in f2fs_check_opt_consistency()
1532 if (!ctx_test_opt(ctx, F2FS_MOUNT_INLINE_XATTR) && !test_opt(sbi, INLINE_XATTR)) { in f2fs_check_opt_consistency()
1721 !test_opt(sbi, READ_EXTENT_CACHE)) { in f2fs_sanity_check_options()
[all …]
H A Dxattr.c55 if (!test_opt(sbi, XATTR_USER)) in f2fs_xattr_generic_get()
78 if (!test_opt(sbi, XATTR_USER)) in f2fs_xattr_generic_set()
95 return test_opt(sbi, XATTR_USER); in f2fs_xattr_user_list()
H A Dextent_cache.c99 return test_opt(F2FS_I_SB(inode), READ_EXTENT_CACHE) && in __init_may_extent_tree()
102 return test_opt(F2FS_I_SB(inode), AGE_EXTENT_CACHE) && in __init_may_extent_tree()
1090 if (!test_opt(sbi, READ_EXTENT_CACHE)) in f2fs_shrink_read_extent_tree()
1128 if (!test_opt(sbi, AGE_EXTENT_CACHE)) in f2fs_shrink_age_extent_tree()
H A Dnamei.c286 if (test_opt(sbi, INLINE_XATTR)) in f2fs_new_inode()
316 if (test_opt(sbi, INLINE_DATA) && f2fs_may_inline_data(inode)) in f2fs_new_inode()
319 if (name && !test_opt(sbi, DISABLE_EXT_IDENTIFY)) in f2fs_new_inode()
H A Dsegment.c446 if (test_opt(sbi, GC_MERGE) && sbi->gc_thread && in f2fs_balance_fs()
532 if (test_opt(sbi, DATA_FLUSH) && from_bg) { in f2fs_balance_fs_bg()
552 trace_f2fs_issue_flush(bdev, test_opt(sbi, NOBARRIER), in __submit_flush_wait()
553 test_opt(sbi, FLUSH_MERGE), ret); in __submit_flush_wait()
617 if (test_opt(sbi, NOBARRIER)) in f2fs_issue_flush()
620 if (!test_opt(sbi, FLUSH_MERGE)) { in f2fs_issue_flush()
702 if (!test_opt(sbi, FLUSH_MERGE)) in f2fs_create_flush_cmd_control()
741 if (test_opt(sbi, NOBARRIER)) in f2fs_flush_device_cache()
3148 if (!test_opt(sbi, ATGC)) in f2fs_reinit_atgc_curseg()
H A Dcheckpoint.c1043 if (type != FILE_INODE || test_opt(sbi, DATA_FLUSH)) in f2fs_update_dirty_folio()
1060 if (type == FILE_INODE && !test_opt(sbi, DATA_FLUSH)) in f2fs_remove_dirty_inode()
1889 if (!test_opt(sbi, MERGE_CHECKPOINT) || cpc.reason != CP_SYNC || in f2fs_issue_checkpoint()
H A Dcompress.c1932 if (!test_opt(sbi, COMPRESS_CACHE)) in f2fs_cache_compressed_page()
1971 if (!test_opt(sbi, COMPRESS_CACHE)) in f2fs_load_compressed_folio()
2034 if (!test_opt(sbi, COMPRESS_CACHE)) in f2fs_init_compress_inode()
/linux/fs/qnx6/
H A Dqnx6.h71 #define test_opt(sb, opt) (QNX6_SB(sb)->s_mount_opt & \ macro
H A Ddir.c99 if (!test_opt(s, MMI_FS) && fs32_to_cpu(sbi, de->de_checksum) != in qnx6_dir_longfilename()
/linux/fs/erofs/
H A Dxattr.c130 return test_opt(&EROFS_SB(dentry->d_sb)->opt, XATTR_USER); in erofs_xattr_user_list()
143 !test_opt(&EROFS_I_SB(inode)->opt, XATTR_USER)) in erofs_xattr_generic_get()
H A Dinode.c195 if (test_opt(&sbi->opt, DAX_ALWAYS) && S_ISREG(inode->i_mode) && in erofs_read_inode()
H A Dinternal.h184 #define test_opt(opt, option) ((opt)->mount_opt & EROFS_MOUNT_##option) macro

12