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_initialize
Proto:static int __dquot_initialize(struct inode *inode, int type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
int | type |
1431 | init_needed = 0 |
1435 | ret = 0 |
1437 | If Not dquot_active(inode) Then Return 0 |
1459 | If Not sb_has_quota_active(sb, cnt) Then Continue |
1462 | init_needed = 1 |
1465 | Case cnt == lement used for user quotas |
1467 | Break |
1468 | Case cnt == lement used for group quotas |
1470 | Break |
1471 | Case cnt == lement used for project quotas |
1472 | rc = get_projid(inode, & projid) |
1473 | If rc Then Continue |
1475 | qid = make_kqid_projid - Make a kqid from a projid*@projid: The kprojid to make the quota identifier from |
1476 | Break |
1485 | dquot = NULL |
1491 | If Not init_needed Then Return 0 |
1494 | spin_lock( & dq_data_lock) |
1495 | If IS_NOQUOTA(inode) Then Go to out_lock |
1501 | If Not sb_has_quota_active(sb, cnt) Then Continue |
1513 | rsv = inode_get_rsv_space(inode) |
1515 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
1517 | rsv = __inode_get_rsv_space(inode) |
1518 | spin_lock( & Lock protecting dq_dqb changes ) |
1520 | spin_unlock( & Lock protecting dq_dqb changes ) |
1521 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1525 | out_lock : |
1526 | spin_unlock( & dq_data_lock) |
1527 | out_put : |
1531 | Return ret |
Name | Describe |
---|---|
add_dquot_ref | This routine is guarded by s_umount semaphore |
dquot_initialize |
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 |