diff options
Diffstat (limited to 'fs/reiserfs/stree.c')
| -rw-r--r-- | fs/reiserfs/stree.c | 20 | 
1 files changed, 11 insertions, 9 deletions
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index 5fa7118f04e1..313d39d639eb 100644 --- a/fs/reiserfs/stree.c +++ b/fs/reiserfs/stree.c  | |||
| @@ -1299,7 +1299,7 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th, | |||
| 1299 | "reiserquota delete_item(): freeing %u, id=%u type=%c", | 1299 | "reiserquota delete_item(): freeing %u, id=%u type=%c", | 
| 1300 | quota_cut_bytes, inode->i_uid, head2type(&s_ih)); | 1300 | quota_cut_bytes, inode->i_uid, head2type(&s_ih)); | 
| 1301 | #endif | 1301 | #endif | 
| 1302 | vfs_dq_free_space_nodirty(inode, quota_cut_bytes); | 1302 | dquot_free_space_nodirty(inode, quota_cut_bytes); | 
| 1303 | 1303 | ||
| 1304 | /* Return deleted body length */ | 1304 | /* Return deleted body length */ | 
| 1305 | return ret_value; | 1305 | return ret_value; | 
| @@ -1383,7 +1383,7 @@ void reiserfs_delete_solid_item(struct reiserfs_transaction_handle *th, | |||
| 1383 | quota_cut_bytes, inode->i_uid, | 1383 | quota_cut_bytes, inode->i_uid, | 
| 1384 | key2type(key)); | 1384 | key2type(key)); | 
| 1385 | #endif | 1385 | #endif | 
| 1386 | vfs_dq_free_space_nodirty(inode, | 1386 | dquot_free_space_nodirty(inode, | 
| 1387 | quota_cut_bytes); | 1387 | quota_cut_bytes); | 
| 1388 | } | 1388 | } | 
| 1389 | break; | 1389 | break; | 
| @@ -1733,7 +1733,7 @@ int reiserfs_cut_from_item(struct reiserfs_transaction_handle *th, | |||
| 1733 | "reiserquota cut_from_item(): freeing %u id=%u type=%c", | 1733 | "reiserquota cut_from_item(): freeing %u id=%u type=%c", | 
| 1734 | quota_cut_bytes, inode->i_uid, '?'); | 1734 | quota_cut_bytes, inode->i_uid, '?'); | 
| 1735 | #endif | 1735 | #endif | 
| 1736 | vfs_dq_free_space_nodirty(inode, quota_cut_bytes); | 1736 | dquot_free_space_nodirty(inode, quota_cut_bytes); | 
| 1737 | return ret_value; | 1737 | return ret_value; | 
| 1738 | } | 1738 | } | 
| 1739 | 1739 | ||
| @@ -1968,9 +1968,10 @@ int reiserfs_paste_into_item(struct reiserfs_transaction_handle *th, struct tree | |||
| 1968 | key2type(&(key->on_disk_key))); | 1968 | key2type(&(key->on_disk_key))); | 
| 1969 | #endif | 1969 | #endif | 
| 1970 | 1970 | ||
| 1971 | if (vfs_dq_alloc_space_nodirty(inode, pasted_size)) { | 1971 | retval = dquot_alloc_space_nodirty(inode, pasted_size); | 
| 1972 | if (retval) { | ||
| 1972 | pathrelse(search_path); | 1973 | pathrelse(search_path); | 
| 1973 | return -EDQUOT; | 1974 | return retval; | 
| 1974 | } | 1975 | } | 
| 1975 | init_tb_struct(th, &s_paste_balance, th->t_super, search_path, | 1976 | init_tb_struct(th, &s_paste_balance, th->t_super, search_path, | 
| 1976 | pasted_size); | 1977 | pasted_size); | 
| @@ -2024,7 +2025,7 @@ int reiserfs_paste_into_item(struct reiserfs_transaction_handle *th, struct tree | |||
| 2024 | pasted_size, inode->i_uid, | 2025 | pasted_size, inode->i_uid, | 
| 2025 | key2type(&(key->on_disk_key))); | 2026 | key2type(&(key->on_disk_key))); | 
| 2026 | #endif | 2027 | #endif | 
| 2027 | vfs_dq_free_space_nodirty(inode, pasted_size); | 2028 | dquot_free_space_nodirty(inode, pasted_size); | 
| 2028 | return retval; | 2029 | return retval; | 
| 2029 | } | 2030 | } | 
| 2030 | 2031 | ||
| @@ -2062,9 +2063,10 @@ int reiserfs_insert_item(struct reiserfs_transaction_handle *th, | |||
| 2062 | #endif | 2063 | #endif | 
| 2063 | /* We can't dirty inode here. It would be immediately written but | 2064 | /* We can't dirty inode here. It would be immediately written but | 
| 2064 | * appropriate stat item isn't inserted yet... */ | 2065 | * appropriate stat item isn't inserted yet... */ | 
| 2065 | if (vfs_dq_alloc_space_nodirty(inode, quota_bytes)) { | 2066 | retval = dquot_alloc_space_nodirty(inode, quota_bytes); | 
| 2067 | if (retval) { | ||
| 2066 | pathrelse(path); | 2068 | pathrelse(path); | 
| 2067 | return -EDQUOT; | 2069 | return retval; | 
| 2068 | } | 2070 | } | 
| 2069 | } | 2071 | } | 
| 2070 | init_tb_struct(th, &s_ins_balance, th->t_super, path, | 2072 | init_tb_struct(th, &s_ins_balance, th->t_super, path, | 
| @@ -2113,6 +2115,6 @@ int reiserfs_insert_item(struct reiserfs_transaction_handle *th, | |||
| 2113 | quota_bytes, inode->i_uid, head2type(ih)); | 2115 | quota_bytes, inode->i_uid, head2type(ih)); | 
| 2114 | #endif | 2116 | #endif | 
| 2115 | if (inode) | 2117 | if (inode) | 
| 2116 | vfs_dq_free_space_nodirty(inode, quota_bytes); | 2118 | dquot_free_space_nodirty(inode, quota_bytes); | 
| 2117 | return retval; | 2119 | return retval; | 
| 2118 | } | 2120 | } | 
