/fs/ocfs2/ |
D | sysfile.c | 43 int type, 50 static inline int is_global_system_inode(int type) in is_global_system_inode() argument 52 return type >= OCFS2_FIRST_ONLINE_SYSTEM_INODE && in is_global_system_inode() 53 type <= OCFS2_LAST_GLOBAL_SYSTEM_INODE; in is_global_system_inode() 57 int type, in get_local_system_inode() argument 64 BUG_ON(type < OCFS2_FIRST_LOCAL_SYSTEM_INODE || in get_local_system_inode() 65 type > OCFS2_LAST_LOCAL_SYSTEM_INODE); in get_local_system_inode() 98 (type - OCFS2_FIRST_LOCAL_SYSTEM_INODE); in get_local_system_inode() 104 int type, in ocfs2_get_system_file_inode() argument 111 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 | 116 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in ocfs2_global_is_id() 121 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in ocfs2_global_is_id() 165 ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data, in ocfs2_quota_read() argument 168 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; in ocfs2_quota_read() 214 ssize_t ocfs2_quota_write(struct super_block *sb, int type, in ocfs2_quota_write() argument 217 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_quota_write() 336 int ocfs2_global_read_info(struct super_block *sb, int type) in ocfs2_global_read_info() argument 342 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_global_read_info() 348 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info() 352 type); in ocfs2_global_read_info() [all …]
|
/fs/quota/ |
D | quota.c | 22 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 37 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 38 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 46 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 51 int type = *(int *)arg; in quota_sync_one() local 54 (sb->s_quota_types & (1 << type))) in quota_sync_one() 55 sb->s_qcop->quota_sync(sb, type); in quota_sync_one() 58 static int quota_sync_all(int type) in quota_sync_all() argument 62 if (type >= MAXQUOTAS) in quota_sync_all() 64 ret = security_quotactl(Q_SYNC, type, 0, NULL); in quota_sync_all() [all …]
|
D | quota_v1.c | 57 int type = dquot->dq_id.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, in v1_read_dqblk() 82 short type = dquot->dq_id.type; in v1_commit_dqblk() local 87 if (((type == USRQUOTA) && uid_eq(dquot->dq_id.uid, GLOBAL_ROOT_UID)) || in v1_commit_dqblk() 88 ((type == GRPQUOTA) && gid_eq(dquot->dq_id.gid, GLOBAL_ROOT_GID))) { in v1_commit_dqblk() 90 sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace; in v1_commit_dqblk() 92 sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace; in v1_commit_dqblk() 95 if (sb_dqopt(dquot->dq_sb)->files[type]) in v1_commit_dqblk() 96 ret = dquot->dq_sb->s_op->quota_write(dquot->dq_sb, type, in v1_commit_dqblk() [all …]
|
D | dquot.c | 250 static int __dquot_initialize(struct inode *inode, int type); 256 int type = qid.type; in hashfn() local 259 tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); in hashfn() 352 info[dquot->dq_id.type].dqi_dirty_list); in dquot_mark_dquot_dirty() 393 void mark_info_dirty(struct super_block *sb, int type) in mark_info_dirty() argument 395 set_bit(DQF_INFO_DIRTY_B, &sb_dqopt(sb)->info[type].dqi_flags); in mark_info_dirty() 411 ret = dqopt->ops[dquot->dq_id.type]->read_dqblk(dquot); in dquot_acquire() 417 ret = dqopt->ops[dquot->dq_id.type]->commit_dqblk(dquot); in dquot_acquire() 419 if (info_dirty(&dqopt->info[dquot->dq_id.type])) { in dquot_acquire() 420 ret2 = dqopt->ops[dquot->dq_id.type]->write_file_info( in dquot_acquire() [all …]
|
D | kqid.c | 14 if (left.type != right.type) in qid_eq() 16 switch(left.type) { in qid_eq() 38 if (left.type < right.type) in qid_lt() 40 if (left.type > right.type) in qid_lt() 42 switch (left.type) { in qid_lt() 69 switch (kqid.type) { in from_kqid() 102 switch (kqid.type) { in from_kqid_munged() 121 switch (qid.type) { in qid_valid()
|
D | quota_v2.c | 58 static int v2_read_header(struct super_block *sb, int type, in v2_read_header() argument 63 size = sb->s_op->quota_read(sb, type, (char *)dqhead, in v2_read_header() 74 static int v2_check_quota_file(struct super_block *sb, int type) in v2_check_quota_file() argument 80 if (!v2_read_header(sb, type, &dqhead)) in v2_check_quota_file() 82 if (le32_to_cpu(dqhead.dqh_magic) != quota_magics[type] || in v2_check_quota_file() 83 le32_to_cpu(dqhead.dqh_version) > quota_versions[type]) in v2_check_quota_file() 89 static int v2_read_file_info(struct super_block *sb, int type) in v2_read_file_info() argument 93 struct mem_dqinfo *info = sb_dqinfo(sb, type); in v2_read_file_info() 98 if (!v2_read_header(sb, type, &dqhead)) in v2_read_file_info() 105 size = sb->s_op->quota_read(sb, type, (char *)&dinfo, in v2_read_file_info() [all …]
|
/fs/ocfs2/dlm/ |
D | dlmconvert.c | 61 int type, int *call_ast, 65 struct dlm_lock *lock, int flags, int type); 78 struct dlm_lock *lock, int flags, int type) in dlmconvert_master() argument 89 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 122 int type, int *call_ast, in __dlmconvert_master() argument 131 lock->ml.type, lock->ml.convert_type, type); in __dlmconvert_master() 152 switch (lock->ml.type) { in __dlmconvert_master() 156 dlm_lock_mode_name(lock->ml.type), in __dlmconvert_master() 157 dlm_lock_mode_name(type)); in __dlmconvert_master() 163 if (type > LKM_NLMODE) { in __dlmconvert_master() [all …]
|
/fs/cachefiles/ |
D | xattr.c | 32 char type[3], xtype[3]; in cachefiles_check_object_type() local 39 strcpy(type, "C3"); in cachefiles_check_object_type() 41 snprintf(type, 3, "%02x", object->fscache.cookie->def->type); in cachefiles_check_object_type() 43 _enter("%p{%s}", object, type); in cachefiles_check_object_type() 46 ret = vfs_setxattr(dentry, cachefiles_xattr_cache, type, 2, in cachefiles_check_object_type() 76 if (xtype[0] != type[0] || xtype[1] != type[1]) in cachefiles_check_object_type() 95 xtype, type); in cachefiles_check_object_type() 117 &auxdata->type, auxdata->len, in cachefiles_set_object_xattr() 145 &auxdata->type, auxdata->len, in cachefiles_update_object_xattr() 176 &auxbuf->type, 512 + 1); in cachefiles_check_auxdata() [all …]
|
D | key.c | 37 char *cachefiles_cook_key(const u8 *raw, int keylen, uint8_t type) in cachefiles_cook_key() argument 114 switch (type) { in cachefiles_cook_key() 115 case FSCACHE_COOKIE_TYPE_INDEX: type = 'I'; break; in cachefiles_cook_key() 116 case FSCACHE_COOKIE_TYPE_DATAFILE: type = 'D'; break; in cachefiles_cook_key() 117 default: type = 'S'; break; in cachefiles_cook_key() 146 switch (type) { in cachefiles_cook_key() 147 case FSCACHE_COOKIE_TYPE_INDEX: type = 'J'; break; in cachefiles_cook_key() 148 case FSCACHE_COOKIE_TYPE_DATAFILE: type = 'E'; break; in cachefiles_cook_key() 149 default: type = 'T'; break; in cachefiles_cook_key() 153 key[mark] = type; in cachefiles_cook_key()
|
/fs/ |
D | fcntl.c | 83 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, in f_modown() argument 90 filp->f_owner.pid_type = type; in f_modown() 101 void __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument 105 f_modown(filp, pid, type, force); in __f_setown() 111 enum pid_type type; in f_setown() local 114 type = PIDTYPE_PID; in f_setown() 120 type = PIDTYPE_PGID; in f_setown() 125 __f_setown(filp, pid, type, force); in f_setown() 151 int type; in f_setown_ex() local 158 switch (owner.type) { in f_setown_ex() [all …]
|
/fs/btrfs/ |
D | uuid-tree.c | 26 static void btrfs_uuid_to_key(u8 *uuid, u8 type, struct btrfs_key *key) in btrfs_uuid_to_key() argument 28 key->type = type; in btrfs_uuid_to_key() 35 u8 type, u64 subid) in btrfs_uuid_tree_lookup() argument 56 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup() 94 struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument 105 ret = btrfs_uuid_tree_lookup(uuid_root, uuid, type, subid_cpu); in btrfs_uuid_tree_add() 114 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add() 143 (unsigned long long)key.offset, type); in btrfs_uuid_tree_add() 158 struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_tree_rem() argument 177 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_rem() [all …]
|
D | export.c | 20 int type; in btrfs_encode_fh() local 31 type = FILEID_BTRFS_WITHOUT_PARENT; in btrfs_encode_fh() 47 type = FILEID_BTRFS_WITH_PARENT_ROOT; in btrfs_encode_fh() 50 type = FILEID_BTRFS_WITH_PARENT; in btrfs_encode_fh() 55 return type; in btrfs_encode_fh() 73 key.type = BTRFS_ROOT_ITEM_KEY; in btrfs_get_dentry() 85 key.type = BTRFS_INODE_ITEM_KEY; in btrfs_get_dentry() 170 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_get_parent() 175 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_parent() 193 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() [all …]
|
D | acl.c | 31 struct posix_acl *btrfs_get_acl(struct inode *inode, int type) in btrfs_get_acl() argument 38 switch (type) { in btrfs_get_acl() 67 set_cached_acl(inode, type, acl); in btrfs_get_acl() 76 struct inode *inode, struct posix_acl *acl, int type) in __btrfs_set_acl() argument 82 switch (type) { in __btrfs_set_acl() 113 set_cached_acl(inode, type, acl); in __btrfs_set_acl() 118 int btrfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in btrfs_set_acl() argument 123 if (type == ACL_TYPE_ACCESS && acl) { in btrfs_set_acl() 128 ret = __btrfs_set_acl(NULL, inode, acl, type); in btrfs_set_acl()
|
/fs/nilfs2/ |
D | sysfs.h | 100 #define NILFS_ATTR(type, name, mode, show, store) \ argument 101 static struct nilfs_##type##_attr nilfs_##type##_attr_##name = \ 104 #define NILFS_INFO_ATTR(type, name) \ argument 105 NILFS_ATTR(type, name, 0444, NULL, NULL) 106 #define NILFS_RO_ATTR(type, name) \ argument 107 NILFS_ATTR(type, name, 0444, nilfs_##type##_##name##_show, NULL) 108 #define NILFS_RW_ATTR(type, name) \ argument 109 NILFS_ATTR(type, name, 0644, \ 110 nilfs_##type##_##name##_show, \ 111 nilfs_##type##_##name##_store)
|
/fs/configfs/ |
D | symlink.c | 141 struct config_item_type *type; in configfs_symlink() local 153 type = parent_item->ci_type; in configfs_symlink() 156 if (!type || !type->ct_item_ops || in configfs_symlink() 157 !type->ct_item_ops->allow_link) in configfs_symlink() 195 ret = type->ct_item_ops->allow_link(parent_item, target_item); in configfs_symlink() 200 if (ret && type->ct_item_ops->drop_link) in configfs_symlink() 201 type->ct_item_ops->drop_link(parent_item, in configfs_symlink() 220 struct config_item_type *type; in configfs_unlink() local 230 type = parent_item->ci_type; in configfs_unlink() 244 if (type && type->ct_item_ops && in configfs_unlink() [all …]
|
/fs/f2fs/ |
D | checkpoint.c | 65 .type = META, in __get_meta_page() 120 bool is_valid_blkaddr(struct f2fs_sb_info *sbi, block_t blkaddr, int type) in is_valid_blkaddr() argument 122 switch (type) { in is_valid_blkaddr() 155 int type, bool sync) in ra_meta_pages() argument 161 .type = META, in ra_meta_pages() 167 .is_meta = (type != META_POR), in ra_meta_pages() 171 if (unlikely(type == META_POR)) in ra_meta_pages() 177 if (!is_valid_blkaddr(sbi, blkno, type)) in ra_meta_pages() 180 switch (type) { in ra_meta_pages() 311 long sync_meta_pages(struct f2fs_sb_info *sbi, enum page_type type, in sync_meta_pages() argument [all …]
|
D | segment.c | 355 .type = DATA, in __commit_inmem_pages() 743 enum dirty_type t = sentry->type; in __locate_dirty_segment() 764 enum dirty_type t = sentry->type; in __remove_dirty_segment() 1007 dpolicy->type = discard_type; in __init_discard_policy() 1041 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __submit_discard_cmd() 1350 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __wait_discard_cmd_range() 1848 static void __set_sit_entry_type(struct f2fs_sb_info *sbi, int type, in __set_sit_entry_type() argument 1852 se->type = type; in __set_sit_entry_type() 1906 if (IS_NODESEG(se->type)) { in update_sit_entry() 1993 static void __add_sum_entry(struct f2fs_sb_info *sbi, int type, in __add_sum_entry() argument [all …]
|
/fs/gfs2/ |
D | acl.c | 30 static const char *gfs2_acl_name(int type) in gfs2_acl_name() argument 32 switch (type) { in gfs2_acl_name() 41 struct posix_acl *gfs2_get_acl(struct inode *inode, int type) in gfs2_get_acl() argument 52 name = gfs2_acl_name(type); in gfs2_get_acl() 67 int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in gfs2_set_acl() argument 72 const char *name = gfs2_acl_name(type); in gfs2_set_acl() 79 if (type == ACL_TYPE_ACCESS) { in gfs2_set_acl() 107 set_cached_acl(inode, type, acl); in gfs2_set_acl()
|
/fs/hfsplus/ |
D | catalog.c | 114 folder->type = cpu_to_be16(HFSPLUS_FOLDER); in hfsplus_cat_build_record() 133 file->type = cpu_to_be16(HFSPLUS_FILE); in hfsplus_cat_build_record() 150 cpu_to_be32(sbi->type); in hfsplus_cat_build_record() 176 hfsplus_cat_entry *entry, int type, in hfsplus_fill_cat_thread() argument 181 entry->type = cpu_to_be16(type); in hfsplus_fill_cat_thread() 198 u16 type; in hfsplus_find_cat() local 205 type = be16_to_cpu(tmp.type); in hfsplus_find_cat() 206 if (type != HFSPLUS_FOLDER_THREAD && type != HFSPLUS_FILE_THREAD) { in hfsplus_find_cat() 336 u16 type; in hfsplus_delete_cat() local 379 type = hfs_bnode_read_u16(fd.bnode, fd.entryoffset); in hfsplus_delete_cat() [all …]
|
/fs/nfsd/ |
D | nfs4idmap.c | 64 int type; /* User / Group */ member 82 new->type = itm->type; in ent_init() 118 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 133 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in idtoname_request() 145 return (a->id == b->id && a->type == b->type && in idtoname_match() 160 ent->type == IDMAP_TYPE_GROUP ? "group" : "user", in idtoname_show() 223 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse() 304 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in nametoid_request() 316 return (a->type == b->type && strcmp(a->name, b->name) == 0 && in nametoid_match() 331 ent->type == IDMAP_TYPE_GROUP ? "group" : "user", in nametoid_show() [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() 191 int res, len, type; in hfs_cat_find_brec() local 198 type = rec.type; in hfs_cat_find_brec() 199 if (type != HFS_CDR_THD && type != HFS_CDR_FTH) { in hfs_cat_find_brec() 226 int res, type; in hfs_cat_delete() local 239 type = hfs_bnode_read_u8(fd.bnode, fd.entryoffset); in hfs_cat_delete() 240 if (type == HFS_CDR_FIL) { in hfs_cat_delete() [all …]
|
/fs/ntfs/ |
D | attrib.c | 134 if (vcn >= allocated_size_vcn || (a->type == ni->type && in ntfs_map_runlist_nolock() 166 err = ntfs_attr_lookup(ni->type, ni->name, ni->name_len, in ntfs_map_runlist_nolock() 589 static int ntfs_attr_find(const ATTR_TYPE type, const ntfschar *name, in ntfs_attr_find() argument 613 if (unlikely(le32_to_cpu(a->type) > le32_to_cpu(type) || in ntfs_attr_find() 614 a->type == AT_END)) in ntfs_attr_find() 618 if (a->type != type) in ntfs_attr_find() 857 static int ntfs_external_attr_find(const ATTR_TYPE type, in ntfs_external_attr_find() argument 874 ntfs_debug("Entering for inode 0x%lx, type 0x%x.", ni->mft_no, type); in ntfs_external_attr_find() 882 if (type == AT_END) in ntfs_external_attr_find() 915 if (le32_to_cpu(al_entry->type) > le32_to_cpu(type)) in ntfs_external_attr_find() [all …]
|
/fs/jfs/ |
D | acl.c | 30 struct posix_acl *jfs_get_acl(struct inode *inode, int type) in jfs_get_acl() argument 37 acl = get_cached_acl(inode, type); in jfs_get_acl() 41 switch(type) { in jfs_get_acl() 71 set_cached_acl(inode, type, acl); in jfs_get_acl() 75 static int __jfs_set_acl(tid_t tid, struct inode *inode, int type, in __jfs_set_acl() argument 83 switch (type) { in __jfs_set_acl() 115 set_cached_acl(inode, type, acl); in __jfs_set_acl() 120 int jfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in jfs_set_acl() argument 127 rc = __jfs_set_acl(tid, inode, type, acl); in jfs_set_acl()
|