Function report |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-28 20:32:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dquot_add_inodes
Proto:static int dquot_add_inodes(struct dquot *dquot, qsize_t inodes, struct dquot_warn *warn)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dquot * | dquot | |
| qsize_t | inodes | |
| struct dquot_warn * | warn |
| 1269 | ret = 0 |
| 1271 | spin_lock( & Lock protecting dq_dqb changes ) |
| 1272 | newinodes = current # allocated inodes + inodes |
| 1277 | If absolute limit on allocated inodes && newinodes > absolute limit on allocated inodes && Not ignore_hardlimit(dquot) Then |
| 1295 | If preferred inode limit && newinodes > preferred inode limit && ime limit for excessive inode use == 0 Then |
| 1298 | prepare_warning(warn, dquot, Inode softlimit reached ) |
| 1302 | add : |
| 1305 | out : |
| 1306 | spin_unlock( & Lock protecting dq_dqb changes ) |
| 1307 | Return ret |
| Name | Describe |
|---|---|
| dquot_alloc_inode | This operation can block, but only after everything is updated |
| __dquot_transfer | Transfer the number of inode and blocks from one diskquota to an other |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |