/fs/ocfs2/ |
D | sysfile.c | 45 int type, 48 static inline int is_global_system_inode(int type); 50 int type, 53 static inline int is_global_system_inode(int type) in is_global_system_inode() argument 55 return type >= OCFS2_FIRST_ONLINE_SYSTEM_INODE && in is_global_system_inode() 56 type <= OCFS2_LAST_GLOBAL_SYSTEM_INODE; in is_global_system_inode() 60 int type, in is_in_system_inode_array() argument 63 return slot == osb->slot_num || is_global_system_inode(type); in is_in_system_inode_array() 67 int type, in ocfs2_get_system_file_inode() argument 74 if (is_in_system_inode_array(osb, type, slot)) in ocfs2_get_system_file_inode() [all …]
|
D | quota_local.c | 134 static int ocfs2_local_check_quota_file(struct super_block *sb, int type) in ocfs2_local_check_quota_file() argument 143 struct inode *linode = sb_dqopt(sb)->files[type]; in ocfs2_local_check_quota_file() 153 type); in ocfs2_local_check_quota_file() 157 if (le32_to_cpu(dqhead->dqh_magic) != lmagics[type]) { in ocfs2_local_check_quota_file() 160 lmagics[type], type); in ocfs2_local_check_quota_file() 163 if (le32_to_cpu(dqhead->dqh_version) != lversions[type]) { in ocfs2_local_check_quota_file() 166 lversions[type], type); in ocfs2_local_check_quota_file() 173 ginode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_local_check_quota_file() 177 "(type=%d)\n", type); in ocfs2_local_check_quota_file() 185 "(type=%d)\n", type); in ocfs2_local_check_quota_file() [all …]
|
D | quota_global.c | 152 ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data, in ocfs2_quota_read() argument 155 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; in ocfs2_quota_read() 189 ssize_t ocfs2_quota_write(struct super_block *sb, int type, in ocfs2_quota_write() argument 192 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_quota_write() 296 int ocfs2_global_read_info(struct super_block *sb, int type) in ocfs2_global_read_info() argument 302 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_global_read_info() 309 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info() 313 type); in ocfs2_global_read_info() 318 oinfo->dqi_gi.dqi_type = type; in ocfs2_global_read_info() 330 status = sb->s_op->quota_read(sb, type, (char *)&dinfo, in ocfs2_global_read_info() [all …]
|
D | ocfs2_lockid.h | 53 static inline char ocfs2_lock_type_char(enum ocfs2_lock_type type) in ocfs2_lock_type_char() argument 56 switch (type) { in ocfs2_lock_type_char() 105 static inline const char *ocfs2_lock_type_string(enum ocfs2_lock_type type) in ocfs2_lock_type_string() argument 108 BUG_ON(type >= OCFS2_NUM_LOCK_TYPES); in ocfs2_lock_type_string() 110 return ocfs2_lock_type_strings[type]; in ocfs2_lock_type_string()
|
/fs/ |
D | quota.c | 23 static int generic_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in generic_quotactl_valid() argument 25 if (type >= MAXQUOTAS) in generic_quotactl_valid() 76 if (!sb_has_quota_active(sb, type)) in generic_quotactl_valid() 82 if (((type == USRQUOTA && current_euid() != id) || in generic_quotactl_valid() 83 (type == GRPQUOTA && !in_egroup_p(id))) && in generic_quotactl_valid() 95 static int xqm_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in xqm_quotactl_valid() argument 97 if (type >= XQM_MAXQUOTAS) in xqm_quotactl_valid() 133 if (((type == XQM_USRQUOTA && current_euid() != id) || in xqm_quotactl_valid() 134 (type == XQM_GRPQUOTA && !in_egroup_p(id))) && in xqm_quotactl_valid() 145 static int check_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in check_quotactl_valid() argument [all …]
|
D | quota_v1.c | 57 int type = dquot->dq_type; in v1_read_dqblk() local 60 if (!sb_dqopt(dquot->dq_sb)->files[type]) in v1_read_dqblk() 65 …dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, sizeof(struct v1_disk_dqblk), v… in v1_read_dqblk() 78 short type = dquot->dq_type; in v1_commit_dqblk() local 84 dqblk.dqb_btime = sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace; in v1_commit_dqblk() 85 dqblk.dqb_itime = sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace; in v1_commit_dqblk() 88 if (sb_dqopt(dquot->dq_sb)->files[type]) in v1_commit_dqblk() 89 ret = dquot->dq_sb->s_op->quota_write(dquot->dq_sb, type, (char *)&dqblk, in v1_commit_dqblk() 118 static int v1_check_quota_file(struct super_block *sb, int type) in v1_check_quota_file() argument 120 struct inode *inode = sb_dqopt(sb)->files[type]; in v1_check_quota_file() [all …]
|
D | dquot.c | 220 hashfn(const struct super_block *sb, unsigned int id, int type) in hashfn() argument 224 tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); in hashfn() 242 …e struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, unsigned int id, int type) in find_dquot() argument 249 if (dquot->dq_sb == sb && dquot->dq_id == id && dquot->dq_type == type) in find_dquot() 322 void mark_info_dirty(struct super_block *sb, int type) in mark_info_dirty() argument 324 set_bit(DQF_INFO_DIRTY_B, &sb_dqopt(sb)->info[type].dqi_flags); in mark_info_dirty() 438 static void invalidate_dquots(struct super_block *sb, int type) in invalidate_dquots() argument 447 if (dquot->dq_type != type) in invalidate_dquots() 520 int vfs_quota_sync(struct super_block *sb, int type) in vfs_quota_sync() argument 529 if (type != -1 && cnt != type) in vfs_quota_sync() [all …]
|
D | quota_v2.c | 50 static int v2_check_quota_file(struct super_block *sb, int type) in v2_check_quota_file() argument 57 size = sb->s_op->quota_read(sb, type, (char *)&dqhead, sizeof(struct v2_disk_dqheader), 0); in v2_check_quota_file() 63 if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type] || in v2_check_quota_file() 64 le32_to_cpu(dqhead.dqh_version) != quota_versions[type]) in v2_check_quota_file() 70 static int v2_read_file_info(struct super_block *sb, int type) in v2_read_file_info() argument 73 struct mem_dqinfo *info = sb_dqinfo(sb, type); in v2_read_file_info() 77 size = sb->s_op->quota_read(sb, type, (char *)&dinfo, in v2_read_file_info() 98 qinfo->dqi_type = type; in v2_read_file_info() 111 static int v2_write_file_info(struct super_block *sb, int type) in v2_write_file_info() argument 114 struct mem_dqinfo *info = sb_dqinfo(sb, type); in v2_write_file_info() [all …]
|
D | generic_acl.c | 19 int type, char *list, size_t list_size) in generic_acl_list() argument 25 acl = ops->getacl(inode, type); in generic_acl_list() 30 switch(type) { in generic_acl_list() 54 int type, void *buffer, size_t size) in generic_acl_get() argument 59 acl = ops->getacl(inode, type); in generic_acl_get() 74 int type, const void *value, size_t size) in generic_acl_set() argument 94 switch(type) { in generic_acl_set() 115 ops->setacl(inode, type, acl); in generic_acl_set()
|
/fs/btrfs/ |
D | struct-funcs.c | 44 #define BTRFS_SETGET_FUNCS(name, type, member, bits) \ argument 45 u##bits btrfs_##name(struct extent_buffer *eb, type *s); \ 46 void btrfs_set_##name(struct extent_buffer *eb, type *s, u##bits val); \ 48 type *s) \ 51 unsigned long offset = part_offset + offsetof(type, member); \ 52 type *p; \ 55 offset + sizeof(((type *)0)->member) <= eb->map_start + \ 57 p = (type *)(eb->kaddr + part_offset - eb->map_start); \ 69 sizeof(((type *)0)->member), \ 74 read_eb_member(eb, s, type, member, &leres); \ [all …]
|
/fs/ocfs2/dlm/ |
D | dlmconvert.c | 63 int type, int *call_ast, 67 struct dlm_lock *lock, int flags, int type); 80 struct dlm_lock *lock, int flags, int type) in dlmconvert_master() argument 91 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 124 int type, int *call_ast, in __dlmconvert_master() argument 134 lock->ml.type, lock->ml.convert_type, type); in __dlmconvert_master() 155 switch (lock->ml.type) { in __dlmconvert_master() 159 dlm_lock_mode_name(lock->ml.type), in __dlmconvert_master() 160 dlm_lock_mode_name(type)); in __dlmconvert_master() 166 if (type > LKM_NLMODE) { in __dlmconvert_master() [all …]
|
D | dlmast.c | 80 if (lock->ml.type == LKM_EXMODE) in dlm_should_cancel_bast() 83 else if (lock->ml.type == LKM_NLMODE) in dlm_should_cancel_bast() 103 lock->ast_pending, lock->ml.type); in __dlm_queue_ast() 312 mlog(0, "type=%d, blocked_type=%d\n", past->type, past->blocked_type); in dlm_proxy_ast_handler() 314 if (past->type != DLM_AST && in dlm_proxy_ast_handler() 315 past->type != DLM_BAST) { in dlm_proxy_ast_handler() 317 "name=%.*s, node=%u\n", past->type, in dlm_proxy_ast_handler() 328 "name=%.*s, node=%u\n", (past->type == DLM_AST ? "" : "b"), in dlm_proxy_ast_handler() 362 if (past->type == DLM_AST) in dlm_proxy_ast_handler() 374 "node=%u\n", past->type == DLM_AST ? "" : "b", in dlm_proxy_ast_handler() [all …]
|
/fs/xfs/ |
D | xfs_arch.h | 87 #define INT_SWAP16(type,var) ((typeof(type))(__swab16((__u16)(var)))) argument 88 #define INT_SWAP32(type,var) ((typeof(type))(__swab32((__u32)(var)))) argument 89 #define INT_SWAP64(type,var) ((typeof(type))(__swab64((__u64)(var)))) argument 92 #define INT_SWAP(type, var) \ argument 93 ((sizeof(type) == 8) ? INT_SWAP64(type,var) : \ 94 ((sizeof(type) == 4) ? INT_SWAP32(type,var) : \ 95 ((sizeof(type) == 2) ? INT_SWAP16(type,var) : \
|
/fs/nfs/ |
D | nfs3acl.c | 56 int type, error = 0; in nfs3_getxattr() local 59 type = ACL_TYPE_ACCESS; in nfs3_getxattr() 61 type = ACL_TYPE_DEFAULT; in nfs3_getxattr() 65 acl = nfs3_proc_getacl(inode, type); in nfs3_getxattr() 69 if (type == ACL_TYPE_ACCESS && acl->a_count == 0) in nfs3_getxattr() 85 int type, error; in nfs3_setxattr() local 88 type = ACL_TYPE_ACCESS; in nfs3_setxattr() 90 type = ACL_TYPE_DEFAULT; in nfs3_setxattr() 97 error = nfs3_proc_setacl(inode, type, acl); in nfs3_setxattr() 106 int type; in nfs3_removexattr() local [all …]
|
/fs/configfs/ |
D | symlink.c | 139 struct config_item_type *type; in configfs_symlink() local 155 type = parent_item->ci_type; in configfs_symlink() 158 if (!type || !type->ct_item_ops || in configfs_symlink() 159 !type->ct_item_ops->allow_link) in configfs_symlink() 166 ret = type->ct_item_ops->allow_link(parent_item, target_item); in configfs_symlink() 171 if (ret && type->ct_item_ops->drop_link) in configfs_symlink() 172 type->ct_item_ops->drop_link(parent_item, in configfs_symlink() 191 struct config_item_type *type; in configfs_unlink() local 203 type = parent_item->ci_type; in configfs_unlink() 217 if (type && type->ct_item_ops && in configfs_unlink() [all …]
|
/fs/hfs/ |
D | catalog.c | 42 rec->type = HFS_CDR_DIR; in hfs_cat_build_record() 51 rec->type = HFS_CDR_FIL; in hfs_cat_build_record() 66 hfs_cat_rec *rec, int type, in hfs_cat_build_thread() argument 69 rec->type = type; in hfs_cat_build_thread() 178 int res, len, type; in hfs_cat_find_brec() local 185 type = rec.type; in hfs_cat_find_brec() 186 if (type != HFS_CDR_THD && type != HFS_CDR_FTH) { in hfs_cat_find_brec() 213 int res, type; in hfs_cat_delete() local 224 type = hfs_bnode_read_u8(fd.bnode, fd.entryoffset); in hfs_cat_delete() 225 if (type == HFS_CDR_FIL) { in hfs_cat_delete() [all …]
|
/fs/ntfs/ |
D | attrib.c | 133 if (vcn >= allocated_size_vcn || (a->type == ni->type && in ntfs_map_runlist_nolock() 165 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, in ntfs_map_runlist_nolock() 588 static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, in ntfs_attr_find() argument 612 if (unlikely(le32_to_cpu(a->type) > le32_to_cpu(type) || in ntfs_attr_find() 613 a->type == AT_END)) in ntfs_attr_find() 617 if (a->type != type) in ntfs_attr_find() 856 static int ntfs_external_attr_find(const ATTR_TYPE type, in ntfs_external_attr_find() argument 873 ntfs_debug("Entering for inode 0x%lx, type 0x%x.", ni->mft_no, type); in ntfs_external_attr_find() 881 if (type == AT_END) in ntfs_external_attr_find() 914 if (le32_to_cpu(al_entry->type) > le32_to_cpu(type)) in ntfs_external_attr_find() [all …]
|
/fs/ubifs/ |
D | io.c | 98 int err = -EINVAL, type, node_len; in ubifs_check_node() local 114 type = ch->node_type; in ubifs_check_node() 115 if (type < 0 || type >= UBIFS_NODE_TYPES_CNT) { in ubifs_check_node() 117 ubifs_err("bad node type %d", type); in ubifs_check_node() 125 if (c->ranges[type].max_len == 0) { in ubifs_check_node() 126 if (node_len != c->ranges[type].len) in ubifs_check_node() 128 } else if (node_len < c->ranges[type].min_len || in ubifs_check_node() 129 node_len > c->ranges[type].max_len) in ubifs_check_node() 132 if (!must_chk_crc && type == UBIFS_DATA_NODE && !c->always_chk_crc && in ubifs_check_node() 691 int ubifs_read_node_wbuf(struct ubifs_wbuf *wbuf, void *buf, int type, int len, in ubifs_read_node_wbuf() argument [all …]
|
D | tnc_misc.c | 276 int i, err, type, cmp; in read_znode() local 340 type = key_type(c, &zbr->key); in read_znode() 341 if (c->ranges[type].max_len == 0) { in read_znode() 342 if (zbr->len != c->ranges[type].len) { in read_znode() 344 type, zbr->len); in read_znode() 345 dbg_err("have to be %d", c->ranges[type].len); in read_znode() 349 } else if (zbr->len < c->ranges[type].min_len || in read_znode() 350 zbr->len > c->ranges[type].max_len) { in read_znode() 352 type, zbr->len); in read_znode() 354 c->ranges[type].min_len, in read_znode() [all …]
|
/fs/afs/ |
D | volume.c | 67 if (params->force && !(vlocation->vldb.vidmask & (1 << params->type))) in afs_volume_lookup() 75 if (!(srvtmask & (1 << params->type))) in afs_volume_lookup() 78 params->type = AFSVL_ROVOL; in afs_volume_lookup() 80 params->type = AFSVL_RWVOL; in afs_volume_lookup() 88 if (vlocation->vols[params->type]) { in afs_volume_lookup() 90 volume = vlocation->vols[params->type]; in afs_volume_lookup() 104 volume->type = params->type; in afs_volume_lookup() 107 volume->vid = vlocation->vldb.vid[params->type]; in afs_volume_lookup() 113 if (vlocation->vldb.srvtmask[loop] & (1 << volume->type)) { in afs_volume_lookup() 137 vlocation->vols[volume->type] = volume; in afs_volume_lookup() [all …]
|
/fs/jfs/ |
D | jfs_txnmgr.c | 592 int type) in txLock() argument 606 if (S_ISDIR(ip->i_mode) && (type & tlckXTREE) && in txLock() 731 tlck->type = 0; in txLock() 777 switch (type & tlckTYPE) { in txLock() 789 if (type & tlckNEW) { in txLock() 822 tlck->type |= type; in txLock() 888 (tlck->type & tlckBTROOT) == 0) { in txRelease() 933 (tlck->type & tlckBTROOT) == 0) { in txUnlock() 996 struct tlock *txMaplock(tid_t tid, struct inode *ip, int type) in txMaplock() argument 1024 tlck->type = type; in txMaplock() [all …]
|
/fs/gfs2/ |
D | util.h | 77 const char *type, const char *function, 98 u16 type, u16 t, 104 u16 type, in gfs2_metatype_check_i() argument 114 if (unlikely(t != type)) in gfs2_metatype_check_i() 115 return gfs2_metatype_check_ii(sdp, bh, type, t, function, in gfs2_metatype_check_i() 120 #define gfs2_metatype_check(sdp, bh, type) \ argument 121 gfs2_metatype_check_i((sdp), (bh), (type), __func__, __FILE__, __LINE__) 123 static inline void gfs2_metatype_set(struct buffer_head *bh, u16 type, in gfs2_metatype_set() argument 128 mh->mh_type = cpu_to_be32(type); in gfs2_metatype_set()
|
/fs/dlm/ |
D | ast.c | 36 void dlm_add_ast(struct dlm_lkb *lkb, int type, int bastmode) in dlm_add_ast() argument 39 dlm_user_add_ast(lkb, type, bastmode); in dlm_add_ast() 48 lkb->lkb_ast_type |= type; in dlm_add_ast() 64 int type = 0, bastmode; in process_asts() local 76 type = lkb->lkb_ast_type; in process_asts() 84 if ((type & AST_COMP) && cast) in process_asts() 87 if ((type & AST_BAST) && bast) in process_asts()
|
/fs/nfsd/ |
D | nfs4idmap.c | 70 int type; /* User / Group */ member 89 new->type = itm->type; in ent_init() 127 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 142 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in idtoname_request() 154 return (a->id == b->id && a->type == b->type && in idtoname_match() 169 ent->type == IDMAP_TYPE_GROUP ? "group" : "user", in idtoname_show() 231 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse() 321 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in nametoid_request() 333 return (a->type == b->type && strcmp(a->name, b->name) == 0 && in nametoid_match() 348 ent->type == IDMAP_TYPE_GROUP ? "group" : "user", in nametoid_show() [all …]
|
/fs/autofs4/ |
D | waitq.c | 96 int type) in autofs4_notify_daemon() argument 107 wq->wait_queue_token, wq->name.len, wq->name.name, type); in autofs4_notify_daemon() 112 pkt.hdr.type = type; in autofs4_notify_daemon() 113 switch (type) { in autofs4_notify_daemon() 165 printk("autofs4_notify_daemon: bad type %d!\n", type); in autofs4_notify_daemon() 325 int status, ret, type; in autofs4_wait() local 340 if (autofs_type_trigger(sbi->type)) in autofs4_wait() 351 if (IS_ROOT(dentry) && autofs_type_trigger(sbi->type)) in autofs4_wait() 404 type = autofs_ptype_missing; in autofs4_wait() 406 type = autofs_ptype_expire_multi; in autofs4_wait() [all …]
|