Lines Matching refs:inode
119 static inline qid_t get_qid(struct f2fs_inode *inode, enum quota_type qtype)
123 return inode->i_uid;
125 return inode->i_gid;
127 return inode->i_projid;
226 * Called to update the blocks used by a particular inode
228 void quota_data_add(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space)
240 dq = get_dq(dict, get_qid(inode, qtype));
248 * Called to remove some blocks used by a particular inode
250 void quota_data_sub(quota_ctx_t qctx, struct f2fs_inode *inode, qsize_t space)
262 dq = get_dq(dict, get_qid(inode, qtype));
269 * Called to count the files used by an inode's user/group
271 void quota_data_inodes(quota_ctx_t qctx, struct f2fs_inode *inode, int adjust)
282 dq = get_dq(dict, get_qid(inode, qtype));
292 struct f2fs_inode* inode)
296 if (inode->i_links > 1) {
305 qsize_t space = (inode->i_blocks - 1) * BLOCK_SZ;
306 quota_data_add(qctx, inode, space);
307 quota_data_inodes(qctx, inode, +1);
358 * Compares the measured quota in qctx->quota_dict with that in the quota inode