/fs/9p/ |
D | cache.c | 86 if (buflen != sizeof(v9inode->qid.version)) in v9fs_cache_inode_check_aux() 89 if (memcmp(buffer, &v9inode->qid.version, in v9fs_cache_inode_check_aux() 90 sizeof(v9inode->qid.version))) in v9fs_cache_inode_check_aux() 117 &v9inode->qid.path, in v9fs_cache_inode_get_cookie() 118 sizeof(v9inode->qid.path), in v9fs_cache_inode_get_cookie() 119 &v9inode->qid.version, in v9fs_cache_inode_get_cookie() 120 sizeof(v9inode->qid.version), in v9fs_cache_inode_get_cookie() 138 fscache_relinquish_cookie(v9inode->fscache, &v9inode->qid.version, in v9fs_cache_inode_put_cookie() 190 &v9inode->qid.path, in v9fs_cache_inode_reset_cookie() 191 sizeof(v9inode->qid.path), in v9fs_cache_inode_reset_cookie() [all …]
|
D | vfs_inode_dotl.c | 72 if (memcmp(&v9inode->qid.version, in v9fs_test_inode_dotl() 73 &st->qid.version, sizeof(v9inode->qid.version))) in v9fs_test_inode_dotl() 76 if (v9inode->qid.type != st->qid.type) in v9fs_test_inode_dotl() 79 if (v9inode->qid.path != st->qid.path) in v9fs_test_inode_dotl() 95 memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); in v9fs_set_inode_dotl() 101 struct p9_qid *qid, in v9fs_qid_iget_dotl() argument 117 i_ino = v9fs_qid2ino(qid); in v9fs_qid_iget_dotl() 159 inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st, new); in v9fs_inode_from_fid_dotl() 239 struct p9_qid qid; in v9fs_vfs_atomic_open_dotl() local 295 mode, gid, &qid); in v9fs_vfs_atomic_open_dotl() [all …]
|
D | vfs_inode.c | 203 wstat->qid.type = ~0; in v9fs_blank_wstat() 204 wstat->qid.version = ~0; in v9fs_blank_wstat() 205 *((long long *)&wstat->qid.path) = ~0; in v9fs_blank_wstat() 408 if (memcmp(&v9inode->qid.version, in v9fs_test_inode() 409 &st->qid.version, sizeof(v9inode->qid.version))) in v9fs_test_inode() 412 if (v9inode->qid.type != st->qid.type) in v9fs_test_inode() 415 if (v9inode->qid.path != st->qid.path) in v9fs_test_inode() 430 memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); in v9fs_set_inode() 435 struct p9_qid *qid, in v9fs_qid_iget() argument 452 i_ino = v9fs_qid2ino(qid); in v9fs_qid_iget() [all …]
|
D | vfs_dir.c | 131 v9fs_qid2ino(&st.qid), dt_type(&st)); in v9fs_dir_readdir() 188 v9fs_qid2ino(&curdirent.qid), in v9fs_dir_readdir_dotl()
|
D | vfs_super.c | 166 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount() 178 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
|
D | v9fs_vfs.h | 52 ino_t v9fs_qid2ino(struct p9_qid *qid);
|
D | v9fs.h | 115 struct p9_qid qid; member
|
D | v9fs.c | 626 memset(&v9inode->qid, 0, sizeof(v9inode->qid)); in v9fs_inode_init_once()
|
/fs/xfs/ |
D | xfs_quotaops.c | 216 struct kqid qid, in xfs_fs_get_dqblk() argument 225 id = from_kqid(&init_user_ns, qid); in xfs_fs_get_dqblk() 226 return xfs_qm_scall_getquota(mp, id, xfs_quota_type(qid.type), qdq); in xfs_fs_get_dqblk() 233 struct kqid *qid, in xfs_fs_get_nextdqblk() argument 243 id = from_kqid(&init_user_ns, *qid); in xfs_fs_get_nextdqblk() 244 ret = xfs_qm_scall_getquota_next(mp, &id, xfs_quota_type(qid->type), in xfs_fs_get_nextdqblk() 250 *qid = make_kqid(current_user_ns(), qid->type, id); in xfs_fs_get_nextdqblk() 257 struct kqid qid, in xfs_fs_set_dqblk() argument 267 return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), in xfs_fs_set_dqblk() 268 xfs_quota_type(qid.type), qdq); in xfs_fs_set_dqblk()
|
/fs/quota/ |
D | quota.c | 203 struct kqid qid; in quota_getquota() local 210 qid = make_kqid(current_user_ns(), type, id); in quota_getquota() 211 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getquota() 213 ret = sb->s_qcop->get_dqblk(sb, qid, &fdq); in quota_getquota() 239 struct kqid qid; in quota_getnextquota() local 246 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota() 247 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextquota() 249 ret = sb->s_qcop->get_nextdqblk(sb, &qid, &fdq); in quota_getnextquota() 254 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota() 291 struct kqid qid; in quota_setquota() local [all …]
|
D | kqid.c | 120 bool qid_valid(struct kqid qid) in qid_valid() argument 122 switch (qid.type) { in qid_valid() 124 return uid_valid(qid.uid); in qid_valid() 126 return gid_valid(qid.gid); in qid_valid() 128 return projid_valid(qid.projid); in qid_valid()
|
D | netlink.c | 37 void quota_send_warning(struct kqid qid, dev_t dev, in quota_send_warning() argument 63 ret = nla_put_u32(skb, QUOTA_NL_A_QTYPE, qid.type); in quota_send_warning() 67 from_kqid_munged(&init_user_ns, qid), in quota_send_warning()
|
D | dquot.c | 276 hashfn(const struct super_block *sb, struct kqid qid) in hashfn() argument 278 unsigned int id = from_kqid(&init_user_ns, qid); in hashfn() 279 int type = qid.type; in hashfn() 302 struct kqid qid) in find_dquot() argument 307 if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid)) in find_dquot() 930 struct dquot *dqget(struct super_block *sb, struct kqid qid) in dqget() argument 932 unsigned int hashent = hashfn(sb, qid); in dqget() 935 if (!qid_has_mapping(sb->s_user_ns, qid)) in dqget() 938 if (!sb_has_quota_active(sb, qid.type)) in dqget() 943 if (!sb_has_quota_active(sb, qid.type)) { in dqget() [all …]
|
D | quota_tree.c | 36 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index() argument 38 qid_t id = from_kqid(&init_user_ns, qid); in get_index() 767 int qtree_get_next_id(struct qtree_mem_dqinfo *info, struct kqid *qid) in qtree_get_next_id() argument 769 qid_t id = from_kqid(&init_user_ns, *qid); in qtree_get_next_id() 775 *qid = make_kqid(&init_user_ns, qid->type, id); in qtree_get_next_id()
|
D | quota_v2.c | 386 static int v2_get_next_id(struct super_block *sb, struct kqid *qid) in v2_get_next_id() argument 392 ret = qtree_get_next_id(sb_dqinfo(sb, qid->type)->dqi_priv, qid); in v2_get_next_id()
|
/fs/gfs2/ |
D | quota.c | 86 const struct kqid qid) in gfs2_qd_hash() argument 91 h = jhash(&qid, sizeof(struct kqid), h); in gfs2_qd_hash() 196 struct kqid qid = qd->qd_id; in qd2index() local 197 return (2 * (u64)from_kqid(&init_user_ns, qid)) + in qd2index() 198 ((qid.type == USRQUOTA) ? 0 : 1); in qd2index() 211 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc() argument 223 qd->qd_id = qid; in qd_alloc() 242 struct kqid qid) in gfs2_qd_search_bucket() argument 248 if (!qid_eq(qd->qd_id, qid)) in gfs2_qd_search_bucket() 262 static int qd_get(struct gfs2_sbd *sdp, struct kqid qid, in qd_get() argument [all …]
|
D | sys.c | 251 struct kqid qid; in quota_refresh_user_store() local 262 qid = make_kqid(current_user_ns(), USRQUOTA, id); in quota_refresh_user_store() 263 if (!qid_valid(qid)) in quota_refresh_user_store() 266 error = gfs2_quota_refresh(sdp, qid); in quota_refresh_user_store() 273 struct kqid qid; in quota_refresh_group_store() local 284 qid = make_kqid(current_user_ns(), GRPQUOTA, id); in quota_refresh_group_store() 285 if (!qid_valid(qid)) in quota_refresh_group_store() 288 error = gfs2_quota_refresh(sdp, qid); in quota_refresh_group_store()
|
D | quota.h | 32 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
|
/fs/ntfs/ |
D | quota.c | 27 const le32 qid = QUOTA_DEFAULTS_ID; in ntfs_mark_quotas_out_of_date() local 43 err = ntfs_index_lookup(&qid, sizeof(qid), ictx); in ntfs_mark_quotas_out_of_date()
|
/fs/ocfs2/ |
D | quota_global.c | 877 static int ocfs2_get_next_id(struct super_block *sb, struct kqid *qid) in ocfs2_get_next_id() argument 879 int type = qid->type; in ocfs2_get_next_id() 883 trace_ocfs2_get_next_id(from_kqid(&init_user_ns, *qid), type); in ocfs2_get_next_id() 894 status = qtree_get_next_id(&info->dqi_gi, qid); in ocfs2_get_next_id()
|
/fs/f2fs/ |
D | super.c | 1731 struct kqid qid; in f2fs_statfs_project() local 1736 qid = make_kqid_projid(projid); in f2fs_statfs_project() 1737 dquot = dqget(sb, qid); in f2fs_statfs_project()
|
/fs/ext4/ |
D | super.c | 6065 struct kqid qid; in ext4_statfs_project() local 6070 qid = make_kqid_projid(projid); in ext4_statfs_project() 6071 dquot = dqget(sb, qid); in ext4_statfs_project()
|