Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 566) sorted by relevance

12345678910>>...23

/fs/orangefs/
Dorangefs-cache.c49 __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 …]
Dacl.c13 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/
Dcifs_debug.h62 #define cifs_dbg_func(ratefunc, type, fmt, ...) \ argument
64 if ((type) & FYI && cifsFYI & CIFS_INFO) { \
67 } else if ((type) & VFS) { \
69 } else if ((type) & NOISY && (NOISY != 0)) { \
74 #define cifs_dbg(type, fmt, ...) \ argument
76 if ((type) & ONCE) \
77 cifs_dbg_func(once, type, fmt, ##__VA_ARGS__); \
79 cifs_dbg_func(ratelimited, type, fmt, ##__VA_ARGS__); \
82 #define cifs_server_dbg_func(ratefunc, type, fmt, ...) \ argument
87 if ((type) & FYI && cifsFYI & CIFS_INFO) { \
[all …]
/fs/vboxsf/
Dvboxsf_wrappers.c26 loc.type = VMMDEV_HGCM_LOC_LOCALHOST_EXISTING; in vboxsf_connect()
80 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_map_folder()
84 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
87 parms.delimiter.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
90 parms.case_sensitive.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
106 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_unmap_folder()
135 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_create()
138 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_create()
142 parms.parms.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_create()
153 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_close()
[all …]
/fs/ocfs2/
Dsysfile.c29 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 …]
Dquota_local.c160 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 …]
Dquota_global.c118 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/quota/
Dquota.c24 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument
39 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission()
40 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission()
48 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
53 int type = *(int *)arg; in quota_sync_one() local
56 (sb->s_quota_types & (1 << type))) in quota_sync_one()
57 sb->s_qcop->quota_sync(sb, type); in quota_sync_one()
60 static int quota_sync_all(int type) in quota_sync_all() argument
64 ret = security_quotactl(Q_SYNC, type, 0, NULL); in quota_sync_all()
66 iterate_supers(quota_sync_one, &type); in quota_sync_all()
[all …]
Dquota_v1.c58 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 …]
Ddquot.c270 static int __dquot_initialize(struct inode *inode, int type);
279 int type = qid.type; in hashfn() local
282 tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); in hashfn()
395 info[dquot->dq_id.type].dqi_dirty_list); in dquot_mark_dquot_dirty()
442 void mark_info_dirty(struct super_block *sb, int type) in mark_info_dirty() argument
445 sb_dqopt(sb)->info[type].dqi_flags |= DQF_INFO_DIRTY; in mark_info_dirty()
463 ret = dqopt->ops[dquot->dq_id.type]->read_dqblk(dquot); in dquot_acquire()
472 ret = dqopt->ops[dquot->dq_id.type]->commit_dqblk(dquot); in dquot_acquire()
474 if (info_dirty(&dqopt->info[dquot->dq_id.type])) { in dquot_acquire()
475 ret2 = dqopt->ops[dquot->dq_id.type]->write_file_info( in dquot_acquire()
[all …]
Dquota_v2.c57 static int v2_read_header(struct super_block *sb, int type, in v2_read_header() argument
62 size = sb->s_op->quota_read(sb, type, (char *)dqhead, in v2_read_header()
75 static int v2_check_quota_file(struct super_block *sb, int type) in v2_check_quota_file() argument
81 if (v2_read_header(sb, type, &dqhead)) in v2_check_quota_file()
83 if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type] || in v2_check_quota_file()
84 le32_to_cpu(dqhead.dqh_version) > quota_versions[type]) in v2_check_quota_file()
90 static int v2_read_file_info(struct super_block *sb, int type) in v2_read_file_info() argument
95 struct mem_dqinfo *info = &dqopt->info[type]; in v2_read_file_info()
102 ret = v2_read_header(sb, type, &dqhead); in v2_read_file_info()
112 size = sb->s_op->quota_read(sb, type, (char *)&dinfo, in v2_read_file_info()
[all …]
Dkqid.c15 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()
/fs/notify/
Dmark.c102 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 …]
/fs/xfs/libxfs/
Dxfs_ag_resv.c71 enum xfs_ag_resv_type type) in xfs_ag_resv_critical() argument
76 switch (type) { in xfs_ag_resv_critical()
91 trace_xfs_ag_resv_critical(pag, type, avail); in xfs_ag_resv_critical()
105 enum xfs_ag_resv_type type) in xfs_ag_resv_needed() argument
110 switch (type) { in xfs_ag_resv_needed()
113 len -= xfs_perag_resv(pag, type)->ar_reserved; in xfs_ag_resv_needed()
122 trace_xfs_ag_resv_needed(pag, type, len); in xfs_ag_resv_needed()
131 enum xfs_ag_resv_type type) in __xfs_ag_resv_free() argument
137 trace_xfs_ag_resv_free(pag, type, 0); in __xfs_ag_resv_free()
139 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free()
[all …]
/fs/ocfs2/dlm/
Ddlmconvert.c46 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/f2fs/
Dextent_cache.c26 enum extent_type type) in __set_extent_info() argument
31 if (type == EX_READ) { in __set_extent_info()
38 } else if (type == EX_BLOCK_AGE) { in __set_extent_info()
44 static bool __init_may_extent_tree(struct inode *inode, enum extent_type type) in __init_may_extent_tree() argument
46 if (type == EX_READ) in __init_may_extent_tree()
49 if (type == EX_BLOCK_AGE) in __init_may_extent_tree()
55 static bool __may_extent_tree(struct inode *inode, enum extent_type type) in __may_extent_tree() argument
64 if (!__init_may_extent_tree(inode, type)) in __may_extent_tree()
67 if (type == EX_READ) { in __may_extent_tree()
73 } else if (type == EX_BLOCK_AGE) { in __may_extent_tree()
[all …]
/fs/exfat/
Ddir.c69 unsigned int type, clu_offset, max_dentries; in exfat_readdir() local
81 if (ei->type != TYPE_DIR) in exfat_readdir()
125 type = exfat_get_entry_type(ep); in exfat_readdir()
126 if (type == TYPE_UNUSED) { in exfat_readdir()
131 if (type != TYPE_FILE && type != TYPE_DIR) { in exfat_readdir()
339 if (ep->type == EXFAT_UNUSED) in exfat_get_entry_type()
341 if (IS_EXFAT_DELETED(ep->type)) in exfat_get_entry_type()
343 if (ep->type == EXFAT_INVAL) in exfat_get_entry_type()
345 if (IS_EXFAT_CRITICAL_PRI(ep->type)) { in exfat_get_entry_type()
346 if (ep->type == EXFAT_BITMAP) in exfat_get_entry_type()
[all …]
/fs/xfs/scrub/
Dscrub.c189 .type = ST_NONE,
195 .type = ST_PERAG,
201 .type = ST_PERAG,
207 .type = ST_PERAG,
213 .type = ST_PERAG,
219 .type = ST_PERAG,
225 .type = ST_PERAG,
231 .type = ST_PERAG,
237 .type = ST_PERAG,
244 .type = ST_PERAG,
[all …]
/fs/btrfs/
Dtree-checker.c174 ASSERT(key->type == BTRFS_XATTR_ITEM_KEY || in check_prev_ino()
175 key->type == BTRFS_INODE_REF_KEY || in check_prev_ino()
176 key->type == BTRFS_DIR_INDEX_KEY || in check_prev_ino()
177 key->type == BTRFS_DIR_ITEM_KEY || in check_prev_ino()
178 key->type == BTRFS_EXTENT_DATA_KEY); in check_prev_ino()
316 prev_key->type == BTRFS_EXTENT_DATA_KEY) { in check_extent_data_item()
359 if (slot > 0 && prev_key->type == BTRFS_EXTENT_CSUM_KEY) { in check_csum_item()
387 is_inode_item = (item_key.type == BTRFS_INODE_ITEM_KEY); in check_inode_key()
390 if (item_key.type == BTRFS_XATTR_ITEM_KEY) { in check_inode_key()
391 if (key->type != 0 || key->objectid != 0 || key->offset != 0) in check_inode_key()
[all …]
Duuid-tree.c14 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/cachefiles/
Dxattr.c28 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 …]
Dkey.c33 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/gfs2/
Dacl.c29 static const char *gfs2_acl_name(int type) in gfs2_acl_name() argument
31 switch (type) { in gfs2_acl_name()
40 static struct posix_acl *__gfs2_get_acl(struct inode *inode, int type) in __gfs2_get_acl() argument
51 name = gfs2_acl_name(type); in __gfs2_get_acl()
60 struct posix_acl *gfs2_get_acl(struct inode *inode, int type) in gfs2_get_acl() argument
74 acl = __gfs2_get_acl(inode, type); in gfs2_get_acl()
80 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __gfs2_set_acl() argument
85 const char *name = gfs2_acl_name(type); in __gfs2_set_acl()
103 set_cached_acl(inode, type, acl); in __gfs2_set_acl()
109 int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in gfs2_set_acl() argument
[all …]
/fs/erofs/
Dzmap.c115 u8 type; member
164 unsigned int advise, type; in legacy_load_cluster_from_disk() local
175 type = (advise >> Z_EROFS_VLE_DI_CLUSTER_TYPE_BIT) & in legacy_load_cluster_from_disk()
177 switch (type) { in legacy_load_cluster_from_disk()
205 m->type = type; in legacy_load_cluster_from_disk()
211 u8 *in, unsigned int pos, u8 *type) in decode_compactedbits() argument
216 *type = (v >> lobits) & 3; in decode_compactedbits()
229 u8 *in, type; in unpack_compacted_index() local
247 in, encodebits * i, &type); in unpack_compacted_index()
248 m->type = type; in unpack_compacted_index()
[all …]
/fs/notify/fanotify/
Dfanotify.c34 if (fh1->type != fh2->type || fh1->len != fh2->len) in fanotify_fh_equal()
101 old->type != new->type || old->pid != new->pid) in fanotify_should_merge()
115 switch (old->type) { in fanotify_should_merge()
243 int type; in fanotify_group_event_mask() local
261 fsnotify_foreach_obj_type(type) { in fanotify_group_event_mask()
262 if (!fsnotify_iter_should_report_type(iter_info, type)) in fanotify_group_event_mask()
264 mark = iter_info->marks[type]; in fanotify_group_event_mask()
280 if (type == FSNOTIFY_OBJ_TYPE_PARENT && in fanotify_group_event_mask()
340 int dwords, type = 0; in fanotify_encode_fh() local
345 fh->type = FILEID_ROOT; in fanotify_encode_fh()
[all …]

12345678910>>...23