函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Release all quotas referenced by inode.* This function only be called on inode free or converting* a file to quota file, no other users for the i_dquot in* both cases, so we needn't call synchronize_srcu() after* clearing i_dquot.

函数原型:static void __dquot_drop(struct inode *inode)

返回类型:void

参数:

类型参数名称
struct inode *inode
1567  dquots等于i_dquot(inode)
1570  加自旋锁
1571 cnt小于MAXQUOTAS循环
1572  put[cnt]等于dquots[cnt]
1573  dquots[cnt] = NULL
1575  自旋锁解锁
1576  dqput_all(put)
调用者
名称描述
dquot_drop
vfs_setup_quota_inodeTurn quotas on on a device