/fs/orangefs/ |
D | orangefs-cache.c | 49 __s32 type = new_op->upcall.type; in get_opname_string() local 51 if (type == ORANGEFS_VFS_OP_FILE_IO) in get_opname_string() 53 else if (type == ORANGEFS_VFS_OP_LOOKUP) in get_opname_string() 55 else if (type == ORANGEFS_VFS_OP_CREATE) in get_opname_string() 57 else if (type == ORANGEFS_VFS_OP_GETATTR) in get_opname_string() 59 else if (type == ORANGEFS_VFS_OP_REMOVE) in get_opname_string() 61 else if (type == ORANGEFS_VFS_OP_MKDIR) in get_opname_string() 63 else if (type == ORANGEFS_VFS_OP_READDIR) in get_opname_string() 65 else if (type == ORANGEFS_VFS_OP_READDIRPLUS) in get_opname_string() 67 else if (type == ORANGEFS_VFS_OP_SETATTR) in get_opname_string() [all …]
|
D | acl.c | 13 struct posix_acl *orangefs_get_acl(struct inode *inode, int type) in orangefs_get_acl() argument 19 switch (type) { in orangefs_get_acl() 27 gossip_err("orangefs_get_acl: bogus value of type %d\n", type); in orangefs_get_acl() 45 type); in orangefs_get_acl() 65 int type) in __orangefs_set_acl() argument 72 switch (type) { in __orangefs_set_acl() 80 gossip_err("%s: invalid type %d!\n", __func__, type); in __orangefs_set_acl() 88 type); in __orangefs_set_acl() 115 set_cached_acl(inode, type, acl); in __orangefs_set_acl() 119 int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in orangefs_set_acl() argument [all …]
|
/fs/cifs/ |
D | cifs_debug.h | 60 #define cifs_dbg_func(ratefunc, type, fmt, ...) \ argument 62 if ((type) & FYI && cifsFYI & CIFS_INFO) { \ 65 } else if ((type) & VFS) { \ 68 } else if ((type) & NOISY && (NOISY != 0)) { \ 73 #define cifs_dbg(type, fmt, ...) \ argument 75 if ((type) & ONCE) \ 77 type, fmt, ##__VA_ARGS__); \ 80 type, fmt, ##__VA_ARGS__); \ 83 #define cifs_server_dbg_func(ratefunc, type, fmt, ...) \ argument 88 if ((type) & FYI && cifsFYI & CIFS_INFO) { \ [all …]
|
/fs/quota/ |
D | quota.c | 23 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 38 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 39 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 47 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 52 int type = *(int *)arg; in quota_sync_one() local 55 (sb->s_quota_types & (1 << type))) in quota_sync_one() 56 sb->s_qcop->quota_sync(sb, type); in quota_sync_one() 59 static int quota_sync_all(int type) in quota_sync_all() argument 63 if (type >= MAXQUOTAS) in quota_sync_all() 65 ret = security_quotactl(Q_SYNC, type, 0, NULL); in quota_sync_all() [all …]
|
D | quota_v1.c | 58 int type = dquot->dq_id.type; in v1_read_dqblk() local 62 if (!dqopt->files[type]) in v1_read_dqblk() 67 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, in v1_read_dqblk() 84 short type = dquot->dq_id.type; in v1_commit_dqblk() local 89 if (((type == USRQUOTA) && uid_eq(dquot->dq_id.uid, GLOBAL_ROOT_UID)) || in v1_commit_dqblk() 90 ((type == GRPQUOTA) && gid_eq(dquot->dq_id.gid, GLOBAL_ROOT_GID))) { in v1_commit_dqblk() 92 sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace; in v1_commit_dqblk() 94 sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace; in v1_commit_dqblk() 97 if (sb_dqopt(dquot->dq_sb)->files[type]) in v1_commit_dqblk() 98 ret = dquot->dq_sb->s_op->quota_write(dquot->dq_sb, type, in v1_commit_dqblk() [all …]
|
D | dquot.c | 259 static int __dquot_initialize(struct inode *inode, int type); 265 int type = qid.type; in hashfn() local 268 tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); in hashfn() 367 info[dquot->dq_id.type].dqi_dirty_list); in dquot_mark_dquot_dirty() 414 void mark_info_dirty(struct super_block *sb, int type) in mark_info_dirty() argument 417 sb_dqopt(sb)->info[type].dqi_flags |= DQF_INFO_DIRTY; in mark_info_dirty() 433 ret = dqopt->ops[dquot->dq_id.type]->read_dqblk(dquot); in dquot_acquire() 442 ret = dqopt->ops[dquot->dq_id.type]->commit_dqblk(dquot); in dquot_acquire() 444 if (info_dirty(&dqopt->info[dquot->dq_id.type])) { in dquot_acquire() 445 ret2 = dqopt->ops[dquot->dq_id.type]->write_file_info( in dquot_acquire() [all …]
|
D | kqid.c | 15 if (left.type != right.type) in qid_eq() 17 switch(left.type) { in qid_eq() 39 if (left.type < right.type) in qid_lt() 41 if (left.type > right.type) in qid_lt() 43 switch (left.type) { in qid_lt() 70 switch (kqid.type) { in from_kqid() 103 switch (kqid.type) { in from_kqid_munged() 122 switch (qid.type) { in qid_valid()
|
D | quota_v2.c | 59 static int v2_read_header(struct super_block *sb, int type, in v2_read_header() argument 64 size = sb->s_op->quota_read(sb, type, (char *)dqhead, in v2_read_header() 77 static int v2_check_quota_file(struct super_block *sb, int type) in v2_check_quota_file() argument 83 if (v2_read_header(sb, type, &dqhead)) in v2_check_quota_file() 85 if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type] || in v2_check_quota_file() 86 le32_to_cpu(dqhead.dqh_version) > quota_versions[type]) in v2_check_quota_file() 92 static int v2_read_file_info(struct super_block *sb, int type) in v2_read_file_info() argument 97 struct mem_dqinfo *info = &dqopt->info[type]; in v2_read_file_info() 104 ret = v2_read_header(sb, type, &dqhead); in v2_read_file_info() 114 size = sb->s_op->quota_read(sb, type, (char *)&dinfo, in v2_read_file_info() [all …]
|
/fs/ocfs2/ |
D | sysfile.c | 29 int type, 36 static inline int is_global_system_inode(int type) in is_global_system_inode() argument 38 return type >= OCFS2_FIRST_ONLINE_SYSTEM_INODE && in is_global_system_inode() 39 type <= OCFS2_LAST_GLOBAL_SYSTEM_INODE; in is_global_system_inode() 43 int type, in get_local_system_inode() argument 50 BUG_ON(type < OCFS2_FIRST_LOCAL_SYSTEM_INODE || in get_local_system_inode() 51 type > OCFS2_LAST_LOCAL_SYSTEM_INODE); in get_local_system_inode() 85 (type - OCFS2_FIRST_LOCAL_SYSTEM_INODE); in get_local_system_inode() 91 int type, in ocfs2_get_system_file_inode() argument 98 if (is_global_system_inode(type)) { in ocfs2_get_system_file_inode() [all …]
|
D | quota_local.c | 160 static int ocfs2_local_check_quota_file(struct super_block *sb, int type) in ocfs2_local_check_quota_file() argument 169 struct inode *linode = sb_dqopt(sb)->files[type]; in ocfs2_local_check_quota_file() 179 type); in ocfs2_local_check_quota_file() 183 if (le32_to_cpu(dqhead->dqh_magic) != lmagics[type]) { in ocfs2_local_check_quota_file() 186 lmagics[type], type); in ocfs2_local_check_quota_file() 189 if (le32_to_cpu(dqhead->dqh_version) != lversions[type]) { in ocfs2_local_check_quota_file() 192 lversions[type], type); in ocfs2_local_check_quota_file() 199 ginode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_local_check_quota_file() 203 "(type=%d)\n", type); in ocfs2_local_check_quota_file() 211 "(type=%d)\n", type); in ocfs2_local_check_quota_file() [all …]
|
D | quota_global.c | 118 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in ocfs2_global_is_id() 123 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in ocfs2_global_is_id() 167 ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data, in ocfs2_quota_read() argument 170 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; in ocfs2_quota_read() 216 ssize_t ocfs2_quota_write(struct super_block *sb, int type, in ocfs2_quota_write() argument 219 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_quota_write() 338 int ocfs2_global_read_info(struct super_block *sb, int type) in ocfs2_global_read_info() argument 344 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_global_read_info() 350 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info() 354 type); in ocfs2_global_read_info() [all …]
|
/fs/notify/ |
D | mark.c | 102 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) in fsnotify_conn_mask_p() 104 else if (conn->type == FSNOTIFY_OBJ_TYPE_VFSMOUNT) in fsnotify_conn_mask_p() 106 else if (conn->type == FSNOTIFY_OBJ_TYPE_SB) in fsnotify_conn_mask_p() 113 if (WARN_ON(!fsnotify_valid_obj_type(conn->type))) in fsnotify_conn_mask() 126 if (!fsnotify_valid_obj_type(conn->type)) in __fsnotify_recalc_mask() 149 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) in fsnotify_recalc_mask() 174 unsigned int *type) in fsnotify_detach_connector_from_object() argument 178 *type = conn->type; in fsnotify_detach_connector_from_object() 179 if (conn->type == FSNOTIFY_OBJ_TYPE_DETACHED) in fsnotify_detach_connector_from_object() 182 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) { in fsnotify_detach_connector_from_object() [all …]
|
D | fsnotify.c | 197 int type; in send_to_group() local 204 fsnotify_foreach_obj_type(type) { in send_to_group() 205 if (!fsnotify_iter_should_report_type(iter_info, type)) in send_to_group() 207 mark = iter_info->marks[type]; in send_to_group() 214 fsnotify_foreach_obj_type(type) { in send_to_group() 215 if (!fsnotify_iter_should_report_type(iter_info, type)) in send_to_group() 217 mark = iter_info->marks[type]; in send_to_group() 272 int type; in fsnotify_iter_select_report_types() local 275 fsnotify_foreach_obj_type(type) { in fsnotify_iter_select_report_types() 276 mark = iter_info->marks[type]; in fsnotify_iter_select_report_types() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_ag_resv.c | 69 enum xfs_ag_resv_type type) in xfs_ag_resv_critical() argument 74 switch (type) { in xfs_ag_resv_critical() 89 trace_xfs_ag_resv_critical(pag, type, avail); in xfs_ag_resv_critical() 103 enum xfs_ag_resv_type type) in xfs_ag_resv_needed() argument 108 switch (type) { in xfs_ag_resv_needed() 111 len -= xfs_perag_resv(pag, type)->ar_reserved; in xfs_ag_resv_needed() 120 trace_xfs_ag_resv_needed(pag, type, len); in xfs_ag_resv_needed() 129 enum xfs_ag_resv_type type) in __xfs_ag_resv_free() argument 135 trace_xfs_ag_resv_free(pag, type, 0); in __xfs_ag_resv_free() 137 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free() [all …]
|
/fs/ocfs2/dlm/ |
D | dlmconvert.c | 46 int type, int *call_ast, 50 struct dlm_lock *lock, int flags, int type); 63 struct dlm_lock *lock, int flags, int type) in dlmconvert_master() argument 74 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 107 int type, int *call_ast, in __dlmconvert_master() argument 116 lock->ml.type, lock->ml.convert_type, type); in __dlmconvert_master() 137 switch (lock->ml.type) { in __dlmconvert_master() 141 dlm_lock_mode_name(lock->ml.type), in __dlmconvert_master() 142 dlm_lock_mode_name(type)); in __dlmconvert_master() 148 if (type > LKM_NLMODE) { in __dlmconvert_master() [all …]
|
/fs/xfs/scrub/ |
D | scrub.c | 187 .type = ST_NONE, 193 .type = ST_PERAG, 199 .type = ST_PERAG, 205 .type = ST_PERAG, 211 .type = ST_PERAG, 217 .type = ST_PERAG, 223 .type = ST_PERAG, 229 .type = ST_PERAG, 235 .type = ST_PERAG, 242 .type = ST_PERAG, [all …]
|
/fs/cachefiles/ |
D | xattr.c | 28 char type[3], xtype[3]; in cachefiles_check_object_type() local 35 strcpy(type, "C3"); in cachefiles_check_object_type() 37 snprintf(type, 3, "%02x", object->fscache.cookie->def->type); in cachefiles_check_object_type() 39 _enter("%p{%s}", object, type); in cachefiles_check_object_type() 42 ret = vfs_setxattr(dentry, cachefiles_xattr_cache, type, 2, in cachefiles_check_object_type() 72 if (xtype[0] != type[0] || xtype[1] != type[1]) in cachefiles_check_object_type() 91 xtype, type); in cachefiles_check_object_type() 114 &auxdata->type, auxdata->len, in cachefiles_set_object_xattr() 144 &auxdata->type, auxdata->len, in cachefiles_update_object_xattr() 175 &auxbuf->type, 512 + 1); in cachefiles_check_auxdata() [all …]
|
D | key.c | 33 char *cachefiles_cook_key(const u8 *raw, int keylen, uint8_t type) in cachefiles_cook_key() argument 110 switch (type) { in cachefiles_cook_key() 111 case FSCACHE_COOKIE_TYPE_INDEX: type = 'I'; break; in cachefiles_cook_key() 112 case FSCACHE_COOKIE_TYPE_DATAFILE: type = 'D'; break; in cachefiles_cook_key() 113 default: type = 'S'; break; in cachefiles_cook_key() 142 switch (type) { in cachefiles_cook_key() 143 case FSCACHE_COOKIE_TYPE_INDEX: type = 'J'; break; in cachefiles_cook_key() 144 case FSCACHE_COOKIE_TYPE_DATAFILE: type = 'E'; break; in cachefiles_cook_key() 145 default: type = 'T'; break; in cachefiles_cook_key() 149 key[mark] = type; in cachefiles_cook_key()
|
/fs/btrfs/ |
D | tree-checker.c | 227 prev_key->type == BTRFS_EXTENT_DATA_KEY) { in check_extent_data_item() 270 if (slot > 0 && prev_key->type == BTRFS_EXTENT_CSUM_KEY) { in check_csum_item() 349 if (key->type == BTRFS_XATTR_ITEM_KEY && in check_dir_item() 357 key->type != BTRFS_XATTR_ITEM_KEY) { in check_dir_item() 405 if (key->type == BTRFS_DIR_ITEM_KEY || in check_dir_item() 406 key->type == BTRFS_XATTR_ITEM_KEY) { in check_dir_item() 455 u64 type; in check_block_group_item() local 501 type = flags & BTRFS_BLOCK_GROUP_TYPE_MASK; in check_block_group_item() 502 if (type != BTRFS_BLOCK_GROUP_DATA && in check_block_group_item() 503 type != BTRFS_BLOCK_GROUP_METADATA && in check_block_group_item() [all …]
|
D | uuid-tree.c | 14 static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument 16 key->type = type; in btrfs_uuid_to_key() 23 u8 type, u64 subid) in btrfs_uuid_tree_lookup() argument 44 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup() 82 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument 95 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add() 104 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add() 133 (unsigned long long)key.offset, type); in btrfs_uuid_tree_add() 147 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument 168 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_remove() [all …]
|
/fs/gfs2/ |
D | acl.c | 28 static const char *gfs2_acl_name(int type) in gfs2_acl_name() argument 30 switch (type) { in gfs2_acl_name() 39 static struct posix_acl *__gfs2_get_acl(struct inode *inode, int type) in __gfs2_get_acl() argument 50 name = gfs2_acl_name(type); in __gfs2_get_acl() 59 struct posix_acl *gfs2_get_acl(struct inode *inode, int type) in gfs2_get_acl() argument 73 acl = __gfs2_get_acl(inode, type); in gfs2_get_acl() 79 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __gfs2_set_acl() argument 84 const char *name = gfs2_acl_name(type); in __gfs2_set_acl() 102 set_cached_acl(inode, type, acl); in __gfs2_set_acl() 108 int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in gfs2_set_acl() argument [all …]
|
/fs/ |
D | fcntl.c | 87 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, in f_modown() argument 94 filp->f_owner.pid_type = type; in f_modown() 105 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument 109 f_modown(filp, pid, type, force); in __f_setown() 115 enum pid_type type; in f_setown() local 119 type = PIDTYPE_TGID; in f_setown() 125 type = PIDTYPE_PGID; in f_setown() 137 __f_setown(filp, pid, type, force); in f_setown() 165 int type; in f_setown_ex() local 172 switch (owner.type) { in f_setown_ex() [all …]
|
/fs/configfs/ |
D | symlink.c | 149 const struct config_item_type *type; in configfs_symlink() local 160 type = parent_item->ci_type; in configfs_symlink() 163 if (!type || !type->ct_item_ops || in configfs_symlink() 164 !type->ct_item_ops->allow_link) in configfs_symlink() 202 ret = type->ct_item_ops->allow_link(parent_item, target_item); in configfs_symlink() 207 if (ret && type->ct_item_ops->drop_link) in configfs_symlink() 208 type->ct_item_ops->drop_link(parent_item, in configfs_symlink() 224 const struct config_item_type *type; in configfs_unlink() local 234 type = parent_item->ci_type; in configfs_unlink() 248 if (type && type->ct_item_ops && in configfs_unlink() [all …]
|
/fs/nilfs2/ |
D | sysfs.h | 91 #define NILFS_ATTR(type, name, mode, show, store) \ argument 92 static struct nilfs_##type##_attr nilfs_##type##_attr_##name = \ 95 #define NILFS_INFO_ATTR(type, name) \ argument 96 NILFS_ATTR(type, name, 0444, NULL, NULL) 97 #define NILFS_RO_ATTR(type, name) \ argument 98 NILFS_ATTR(type, name, 0444, nilfs_##type##_##name##_show, NULL) 99 #define NILFS_RW_ATTR(type, name) \ argument 100 NILFS_ATTR(type, name, 0644, \ 101 nilfs_##type##_##name##_show, \ 102 nilfs_##type##_##name##_store)
|
/fs/erofs/ |
D | zmap.c | 103 u8 type; member 152 unsigned int advise, type; in vle_legacy_load_cluster_from_disk() local 163 type = (advise >> Z_EROFS_VLE_DI_CLUSTER_TYPE_BIT) & in vle_legacy_load_cluster_from_disk() 165 switch (type) { in vle_legacy_load_cluster_from_disk() 180 m->type = type; in vle_legacy_load_cluster_from_disk() 186 u8 *in, unsigned int pos, u8 *type) in decode_compactedbits() argument 191 *type = (v >> lobits) & 3; in decode_compactedbits() 204 u8 *in, type; in unpack_compacted_index() local 220 in, encodebits * i, &type); in unpack_compacted_index() 221 m->type = type; in unpack_compacted_index() [all …]
|