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_space
Proto:static int dquot_add_space(struct dquot *dquot, qsize_t space, qsize_t rsv_space, unsigned int flags, struct dquot_warn *warn)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dquot * | dquot | |
qsize_t | space | |
qsize_t | rsv_space | |
unsigned int | flags | |
struct dquot_warn * | warn |
1315 | sb = superblock this applies to |
1316 | ret = 0 |
1318 | spin_lock( & Lock protecting dq_dqb changes ) |
1326 | If absolute limit on disk blks alloc && tspace > absolute limit on disk blks alloc && Not ignore_hardlimit(dquot) Then |
1329 | If flags & DQUOT_SPACE_WARN Then prepare_warning(warn, dquot, Block hardlimit reached ) |
1332 | Go to finish |
1340 | If flags & DQUOT_SPACE_WARN Then prepare_warning(warn, dquot, Block grace time expired ) |
1343 | Go to finish |
1346 | If preferred limit on disk blks && tspace > preferred limit on disk blks && ime limit for excessive disk use == 0 Then |
1349 | If flags & DQUOT_SPACE_WARN Then |
1350 | prepare_warning(warn, dquot, Block softlimit reached ) |
1353 | Else |
1362 | finish : |
1368 | If flags & DQUOT_SPACE_NOFAIL Then ret = 0 |
1370 | If Not ret Then |
1372 | current used space += space |
1374 | spin_unlock( & Lock protecting dq_dqb changes ) |
1375 | Return ret |
Name | Describe |
---|---|
__dquot_alloc_space | 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 |