|
@@ -381,10 +381,10 @@ static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
|
|
* It's time to move the inline table to an external
|
|
* It's time to move the inline table to an external
|
|
* page and begin to build the xtree
|
|
* page and begin to build the xtree
|
|
*/
|
|
*/
|
|
- if (DQUOT_ALLOC_BLOCK(ip, sbi->nbperpage))
|
|
|
|
|
|
+ if (vfs_dq_alloc_block(ip, sbi->nbperpage))
|
|
goto clean_up;
|
|
goto clean_up;
|
|
if (dbAlloc(ip, 0, sbi->nbperpage, &xaddr)) {
|
|
if (dbAlloc(ip, 0, sbi->nbperpage, &xaddr)) {
|
|
- DQUOT_FREE_BLOCK(ip, sbi->nbperpage);
|
|
|
|
|
|
+ vfs_dq_free_block(ip, sbi->nbperpage);
|
|
goto clean_up;
|
|
goto clean_up;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -408,7 +408,7 @@ static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot)
|
|
memcpy(&jfs_ip->i_dirtable, temp_table,
|
|
memcpy(&jfs_ip->i_dirtable, temp_table,
|
|
sizeof (temp_table));
|
|
sizeof (temp_table));
|
|
dbFree(ip, xaddr, sbi->nbperpage);
|
|
dbFree(ip, xaddr, sbi->nbperpage);
|
|
- DQUOT_FREE_BLOCK(ip, sbi->nbperpage);
|
|
|
|
|
|
+ vfs_dq_free_block(ip, sbi->nbperpage);
|
|
goto clean_up;
|
|
goto clean_up;
|
|
}
|
|
}
|
|
ip->i_size = PSIZE;
|
|
ip->i_size = PSIZE;
|
|
@@ -1027,7 +1027,7 @@ static int dtSplitUp(tid_t tid,
|
|
n = xlen;
|
|
n = xlen;
|
|
|
|
|
|
/* Allocate blocks to quota. */
|
|
/* Allocate blocks to quota. */
|
|
- if (DQUOT_ALLOC_BLOCK(ip, n)) {
|
|
|
|
|
|
+ if (vfs_dq_alloc_block(ip, n)) {
|
|
rc = -EDQUOT;
|
|
rc = -EDQUOT;
|
|
goto extendOut;
|
|
goto extendOut;
|
|
}
|
|
}
|
|
@@ -1308,7 +1308,7 @@ static int dtSplitUp(tid_t tid,
|
|
|
|
|
|
/* Rollback quota allocation */
|
|
/* Rollback quota allocation */
|
|
if (rc && quota_allocation)
|
|
if (rc && quota_allocation)
|
|
- DQUOT_FREE_BLOCK(ip, quota_allocation);
|
|
|
|
|
|
+ vfs_dq_free_block(ip, quota_allocation);
|
|
|
|
|
|
dtSplitUp_Exit:
|
|
dtSplitUp_Exit:
|
|
|
|
|
|
@@ -1369,7 +1369,7 @@ static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split,
|
|
return -EIO;
|
|
return -EIO;
|
|
|
|
|
|
/* Allocate blocks to quota. */
|
|
/* Allocate blocks to quota. */
|
|
- if (DQUOT_ALLOC_BLOCK(ip, lengthPXD(pxd))) {
|
|
|
|
|
|
+ if (vfs_dq_alloc_block(ip, lengthPXD(pxd))) {
|
|
release_metapage(rmp);
|
|
release_metapage(rmp);
|
|
return -EDQUOT;
|
|
return -EDQUOT;
|
|
}
|
|
}
|
|
@@ -1916,7 +1916,7 @@ static int dtSplitRoot(tid_t tid,
|
|
rp = rmp->data;
|
|
rp = rmp->data;
|
|
|
|
|
|
/* Allocate blocks to quota. */
|
|
/* Allocate blocks to quota. */
|
|
- if (DQUOT_ALLOC_BLOCK(ip, lengthPXD(pxd))) {
|
|
|
|
|
|
+ if (vfs_dq_alloc_block(ip, lengthPXD(pxd))) {
|
|
release_metapage(rmp);
|
|
release_metapage(rmp);
|
|
return -EDQUOT;
|
|
return -EDQUOT;
|
|
}
|
|
}
|
|
@@ -2287,7 +2287,7 @@ static int dtDeleteUp(tid_t tid, struct inode *ip,
|
|
xlen = lengthPXD(&fp->header.self);
|
|
xlen = lengthPXD(&fp->header.self);
|
|
|
|
|
|
/* Free quota allocation. */
|
|
/* Free quota allocation. */
|
|
- DQUOT_FREE_BLOCK(ip, xlen);
|
|
|
|
|
|
+ vfs_dq_free_block(ip, xlen);
|
|
|
|
|
|
/* free/invalidate its buffer page */
|
|
/* free/invalidate its buffer page */
|
|
discard_metapage(fmp);
|
|
discard_metapage(fmp);
|
|
@@ -2363,7 +2363,7 @@ static int dtDeleteUp(tid_t tid, struct inode *ip,
|
|
xlen = lengthPXD(&p->header.self);
|
|
xlen = lengthPXD(&p->header.self);
|
|
|
|
|
|
/* Free quota allocation */
|
|
/* Free quota allocation */
|
|
- DQUOT_FREE_BLOCK(ip, xlen);
|
|
|
|
|
|
+ vfs_dq_free_block(ip, xlen);
|
|
|
|
|
|
/* free/invalidate its buffer page */
|
|
/* free/invalidate its buffer page */
|
|
discard_metapage(mp);
|
|
discard_metapage(mp);
|