/fs/quota/ |
D | quota.c | 21 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 35 if ((type == USRQUOTA && current_euid() == id) || in check_quotactl_permission() 36 (type == GRPQUOTA && in_egroup_p(id))) in check_quotactl_permission() 44 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 53 static int quota_sync_all(int type) in quota_sync_all() argument 57 if (type >= MAXQUOTAS) in quota_sync_all() 59 ret = security_quotactl(Q_SYNC, type, 0, NULL); in quota_sync_all() 61 iterate_supers(quota_sync_one, &type); in quota_sync_all() 65 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument 71 return sb->s_qcop->quota_on_meta(sb, type, id); in quota_quotaon() [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, in v1_read_dqblk() 81 short type = dquot->dq_type; in v1_commit_dqblk() local 88 sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace; in v1_commit_dqblk() 90 sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace; in v1_commit_dqblk() 93 if (sb_dqopt(dquot->dq_sb)->files[type]) in v1_commit_dqblk() 94 ret = dquot->dq_sb->s_op->quota_write(dquot->dq_sb, type, in v1_commit_dqblk() 123 static int v1_check_quota_file(struct super_block *sb, int type) in v1_check_quota_file() argument 125 struct inode *inode = sb_dqopt(sb)->files[type]; in v1_check_quota_file() [all …]
|
D | dquot.c | 253 static void __dquot_initialize(struct inode *inode, int type); 256 hashfn(const struct super_block *sb, unsigned int id, int type) in hashfn() argument 260 tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); in hashfn() 280 unsigned int id, int type) in find_dquot() argument 288 dquot->dq_type == type) in find_dquot() 395 void mark_info_dirty(struct super_block *sb, int type) in mark_info_dirty() argument 397 set_bit(DQF_INFO_DIRTY_B, &sb_dqopt(sb)->info[type].dqi_flags); in mark_info_dirty() 515 static void invalidate_dquots(struct super_block *sb, int type) in invalidate_dquots() argument 524 if (dquot->dq_type != type) in invalidate_dquots() 598 int dquot_quota_sync(struct super_block *sb, int type, int wait) in dquot_quota_sync() argument [all …]
|
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/ |
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() 99 (type - OCFS2_FIRST_LOCAL_SYSTEM_INODE); in get_local_system_inode() 105 int type, in ocfs2_get_system_file_inode() argument 112 if (is_global_system_inode(type)) { in ocfs2_get_system_file_inode() [all …]
|
D | quota_local.c | 167 static int ocfs2_local_check_quota_file(struct super_block *sb, int type) in ocfs2_local_check_quota_file() argument 176 struct inode *linode = sb_dqopt(sb)->files[type]; in ocfs2_local_check_quota_file() 186 type); in ocfs2_local_check_quota_file() 190 if (le32_to_cpu(dqhead->dqh_magic) != lmagics[type]) { in ocfs2_local_check_quota_file() 193 lmagics[type], type); in ocfs2_local_check_quota_file() 196 if (le32_to_cpu(dqhead->dqh_version) != lversions[type]) { in ocfs2_local_check_quota_file() 199 lversions[type], type); in ocfs2_local_check_quota_file() 206 ginode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_local_check_quota_file() 210 "(type=%d)\n", type); in ocfs2_local_check_quota_file() 218 "(type=%d)\n", type); in ocfs2_local_check_quota_file() [all …]
|
D | quota_global.c | 161 ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data, in ocfs2_quota_read() argument 164 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; in ocfs2_quota_read() 210 ssize_t ocfs2_quota_write(struct super_block *sb, int type, in ocfs2_quota_write() argument 213 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_quota_write() 332 int ocfs2_global_read_info(struct super_block *sb, int type) in ocfs2_global_read_info() argument 338 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_global_read_info() 344 gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type], in ocfs2_global_read_info() 348 type); in ocfs2_global_read_info() 353 oinfo->dqi_gi.dqi_type = type; in ocfs2_global_read_info() 374 status = sb->s_op->quota_read(sb, type, (char *)&dinfo, in ocfs2_global_read_info() [all …]
|
/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); \ 47 void btrfs_set_token_##name(struct extent_buffer *eb, type *s, u##bits val, struct btrfs_map_token … 49 type *s, struct btrfs_map_token *token) \ 52 unsigned long offset = part_offset + offsetof(type, member); \ 53 type *p; \ 58 unsigned long mem_len = sizeof(((type *)0)->member); \ 64 p = (type *)(kaddr + part_offset - token->offset); \ 73 read_eb_member(eb, s, type, member, &leres); \ [all …]
|
D | acl.c | 31 struct posix_acl *btrfs_get_acl(struct inode *inode, int type) in btrfs_get_acl() argument 41 acl = get_cached_acl(inode, type); in btrfs_get_acl() 45 switch (type) { in btrfs_get_acl() 74 set_cached_acl(inode, type, acl); in btrfs_get_acl() 80 void *value, size_t size, int type) in btrfs_xattr_acl_get() argument 88 acl = btrfs_get_acl(dentry->d_inode, type); in btrfs_xattr_acl_get() 104 struct inode *inode, struct posix_acl *acl, int type) in btrfs_set_acl() argument 117 switch (type) { in btrfs_set_acl() 154 set_cached_acl(inode, type, acl); in btrfs_set_acl() 160 const void *value, size_t size, int flags, int type) in btrfs_xattr_acl_set() argument [all …]
|
D | export.c | 22 int type; in btrfs_encode_fh() local 33 type = FILEID_BTRFS_WITHOUT_PARENT; in btrfs_encode_fh() 55 type = FILEID_BTRFS_WITH_PARENT_ROOT; in btrfs_encode_fh() 58 type = FILEID_BTRFS_WITH_PARENT; in btrfs_encode_fh() 63 return type; in btrfs_encode_fh() 183 key.type = BTRFS_ROOT_BACKREF_KEY; in btrfs_get_parent() 188 key.type = BTRFS_INODE_REF_KEY; in btrfs_get_parent() 206 if (found_key.objectid != key.objectid || found_key.type != key.type) { in btrfs_get_parent() 211 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() 220 if (found_key.type == BTRFS_ROOT_BACKREF_KEY) { in btrfs_get_parent() [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 132 lock->ml.type, lock->ml.convert_type, type); in __dlmconvert_master() 153 switch (lock->ml.type) { in __dlmconvert_master() 157 dlm_lock_mode_name(lock->ml.type), in __dlmconvert_master() 158 dlm_lock_mode_name(type)); in __dlmconvert_master() 164 if (type > LKM_NLMODE) { in __dlmconvert_master() [all …]
|
/fs/sysfs/ |
D | mount.c | 78 enum kobj_ns_type type; in sysfs_test_super() local 81 for (type = KOBJ_NS_TYPE_NONE; type < KOBJ_NS_TYPES; type++) { in sysfs_test_super() 82 if (sb_info->ns[type] != info->ns[type]) in sysfs_test_super() 99 int type; in free_sysfs_super_info() local 100 for (type = KOBJ_NS_TYPE_NONE; type < KOBJ_NS_TYPES; type++) in free_sysfs_super_info() 101 kobj_ns_drop(type, info->ns[type]); in free_sysfs_super_info() 109 enum kobj_ns_type type; in sysfs_mount() local 117 for (type = KOBJ_NS_TYPE_NONE; type < KOBJ_NS_TYPES; type++) in sysfs_mount() 118 info->ns[type] = kobj_ns_grab_current(type); in sysfs_mount()
|
/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 acl = get_cached_acl(&ip->i_inode, type); in gfs2_get_acl() 56 name = gfs2_acl_name(type); in gfs2_get_acl() 87 static int gfs2_acl_set(struct inode *inode, int type, struct posix_acl *acl) in gfs2_acl_set() argument 92 const char *name = gfs2_acl_name(type); in gfs2_acl_set() 106 set_cached_acl(inode, type, acl); in gfs2_acl_set() 205 int type; in gfs2_xattr_system_get() local 211 type = gfs2_acl_type(name); in gfs2_xattr_system_get() [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() 78 if (xtype[0] != type[0] || xtype[1] != type[1]) in cachefiles_check_object_type() 98 xtype, type); in cachefiles_check_object_type() 121 &auxdata->type, auxdata->len, in cachefiles_set_object_xattr() 150 &auxdata->type, auxdata->len, in cachefiles_update_object_xattr() 185 &auxbuf->type, 512 + 1); in cachefiles_check_object_xattr() [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/nfs/ |
D | nfs3acl.c | 57 int type, error = 0; in nfs3_getxattr() local 60 type = ACL_TYPE_ACCESS; in nfs3_getxattr() 62 type = ACL_TYPE_DEFAULT; in nfs3_getxattr() 66 acl = nfs3_proc_getacl(inode, type); in nfs3_getxattr() 70 if (type == ACL_TYPE_ACCESS && acl->a_count == 0) in nfs3_getxattr() 86 int type, error; in nfs3_setxattr() local 89 type = ACL_TYPE_ACCESS; in nfs3_setxattr() 91 type = ACL_TYPE_DEFAULT; in nfs3_setxattr() 98 error = nfs3_proc_setacl(inode, type, acl); in nfs3_setxattr() 107 int type; in nfs3_removexattr() local [all …]
|
/fs/9p/ |
D | acl.c | 87 static struct posix_acl *v9fs_get_cached_acl(struct inode *inode, int type) in v9fs_get_cached_acl() argument 94 acl = get_cached_acl(inode, type); in v9fs_get_cached_acl() 99 struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type) in v9fs_iop_get_acl() argument 112 return v9fs_get_cached_acl(inode, type); in v9fs_iop_get_acl() 116 static int v9fs_set_acl(struct dentry *dentry, int type, struct posix_acl *acl) in v9fs_set_acl() argument 124 set_cached_acl(inode, type, acl); in v9fs_set_acl() 137 switch (type) { in v9fs_set_acl() 215 void *buffer, size_t size, int type) in v9fs_remote_get_acl() argument 219 switch (type) { in v9fs_remote_get_acl() 233 void *buffer, size_t size, int type) in v9fs_xattr_get_acl() argument [all …]
|
/fs/nfsd/ |
D | nfs4idmap.c | 65 int type; /* User / Group */ member 83 new->type = itm->type; in ent_init() 121 if (ent->type == IDMAP_TYPE_GROUP) in idtoname_hash() 136 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() 339 return (a->type == b->type && strcmp(a->name, b->name) == 0 && in nametoid_match() 354 ent->type == IDMAP_TYPE_GROUP ? "group" : "user", in nametoid_show() [all …]
|
/fs/ |
D | fcntl.c | 200 static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, in f_modown() argument 207 filp->f_owner.pid_type = type; in f_modown() 218 int __f_setown(struct file *filp, struct pid *pid, enum pid_type type, in __f_setown() argument 227 f_modown(filp, pid, type, force); in __f_setown() 234 enum pid_type type; in f_setown() local 238 type = PIDTYPE_PID; in f_setown() 240 type = PIDTYPE_PGID; in f_setown() 245 result = __f_setown(filp, pid, type, force); in f_setown() 272 int type; in f_setown_ex() local 279 switch (owner.type) { in f_setown_ex() [all …]
|
/fs/squashfs/ |
D | xattr.c | 69 handler = squashfs_xattr_handler(le16_to_cpu(entry.type)); in squashfs_listxattr() 137 int type, prefix, name_size; in squashfs_xattr_get() local 145 type = le16_to_cpu(entry.type); in squashfs_xattr_get() 146 prefix = type & SQUASHFS_XATTR_PREFIX_MASK; in squashfs_xattr_get() 160 if (type & SQUASHFS_XATTR_VALUE_OOL) { in squashfs_xattr_get() 219 const char *name, size_t name_len, int type) in squashfs_user_list() argument 227 size_t size, int type) in squashfs_user_get() argument 246 size_t list_size, const char *name, size_t name_len, int type) in squashfs_trusted_list() argument 257 void *buffer, size_t size, int type) in squashfs_trusted_get() argument 276 size_t list_size, const char *name, size_t name_len, int type) in squashfs_security_list() argument [all …]
|
/fs/configfs/ |
D | symlink.c | 142 struct config_item_type *type; in configfs_symlink() local 154 type = parent_item->ci_type; in configfs_symlink() 157 if (!type || !type->ct_item_ops || in configfs_symlink() 158 !type->ct_item_ops->allow_link) in configfs_symlink() 165 ret = type->ct_item_ops->allow_link(parent_item, target_item); in configfs_symlink() 170 if (ret && type->ct_item_ops->drop_link) in configfs_symlink() 171 type->ct_item_ops->drop_link(parent_item, in configfs_symlink() 190 struct config_item_type *type; in configfs_unlink() local 200 type = parent_item->ci_type; in configfs_unlink() 214 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 | 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/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() 117 if (vlocation->vldb.srvtmask[loop] & (1 << volume->type)) { in afs_volume_lookup() 139 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 …]
|