函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:08:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Wrapper for transferring ownership of an inode for uid/gid only* Called from FSXXX_setattr()

函数原型:int dquot_transfer(struct inode *inode, struct iattr *iattr)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct iattr *iattr
2076  struct dquot * transfer_to[3] = {}
2078  sb等于i_sb
2081  如果非dquot_active(inode)则返回:0
2084  如果ia_valid按位与ATTR_UID且非uid_eq(ia_uid, i_uid)则
2085  dquot等于Get reference to dquot* Locking is slightly tricky here. We are guarded from parallel quotaoff()* destroying our dquot by:* a) checking for quota flags under dq_list_lock and* b) getting a reference to dquot before we release dq_list_lock
2086  如果是错误
2087  如果错误不等于负ESRCH
2088  ret等于错误
2089  转到:out_put
2091  dquot = NULL
2093  transfer_to[lement used for user quotas ]等于dquot
2095  如果ia_valid按位与ATTR_GID且非gid_eq(ia_gid, i_gid)则
2096  dquot等于Get reference to dquot* Locking is slightly tricky here. We are guarded from parallel quotaoff()* destroying our dquot by:* a) checking for quota flags under dq_list_lock and* b) getting a reference to dquot before we release dq_list_lock
2097  如果是错误
2098  如果错误不等于负ESRCH
2099  ret等于错误
2100  转到:out_put
2102  dquot = NULL
2104  transfer_to[lement used for group quotas ]等于dquot
2106  ret等于Transfer the number of inode and blocks from one diskquota to an other
2107  out_put :
2108  dqput_all(transfer_to)
2109  返回:ret