+ data.length = estimate_cde(result ? coord : NULL, &data);
+
+ /* NOTE-NIKITA quota plugin? */
-+ if (DQUOT_ALLOC_SPACE_NODIRTY(dir, cde_bytes(result, &data)))
++ if (vfs_dq_alloc_space_nodirty(dir, cde_bytes(result, &data)))
+ return RETERR(-EDQUOT);
+
+ if (result)
+ kill_node_content(coord, &shadow, NULL, NULL, NULL, NULL, NULL, 0);
+ if (result == 0) {
+ /* NOTE-NIKITA quota plugin? */
-+ DQUOT_FREE_SPACE_NODIRTY(dir, length);
++ vfs_dq_free_space_nodirty(dir, length);
+ }
+ return result;
+}
+
+ assert("", get_key_offset(key) == (loff_t)index_jnode(jnodes[0]) * PAGE_CACHE_SIZE);
+
-+ result = DQUOT_ALLOC_BLOCK_NODIRTY(mapping_jnode(jnodes[0])->host,
++ result = vfs_dq_alloc_block_nodirty(mapping_jnode(jnodes[0])->host,
+ count);
+ BUG_ON(result != 0);
+
+ if (count == 0)
+ return 0;
+
-+ result = DQUOT_ALLOC_BLOCK_NODIRTY(mapping_jnode(jnodes[0])->host, count);
++ result = vfs_dq_alloc_block_nodirty(mapping_jnode(jnodes[0])->host, count);
+ BUG_ON(result != 0);
+
+ /*
+ break;
+
+ case HOLE_EXTENT:
-+ result = DQUOT_ALLOC_BLOCK_NODIRTY(mapping_jnode(node)->host, 1);
++ result = vfs_dq_alloc_block_nodirty(mapping_jnode(node)->host, 1);
+ BUG_ON(result != 0);
+ result = plug_hole(uf_coord, key, &how);
+ if (result)
+ length = to_off - offset;
+ }
+
-+ DQUOT_FREE_BLOCK_NODIRTY(inode, length);
++ vfs_dq_free_block_nodirty(inode, length);
+
+ if (state_of_extent(ext) == UNALLOCATED_EXTENT) {
+ /* some jnodes corresponding to this unallocated extent */
+ data.iplug = item_plugin_by_id(SIMPLE_DIR_ENTRY_ID);
+
+ /* NOTE-NIKITA quota plugin */
-+ if (DQUOT_ALLOC_SPACE_NODIRTY(dir, data.length))
++ if (vfs_dq_alloc_space_nodirty(dir, data.length))
+ return -EDQUOT;
+
+ result = insert_by_coord(coord, &data, &entry->key, lh, 0 /*flags */ );
+ kill_node_content(coord, &shadow, NULL, NULL, NULL, NULL, NULL, 0);
+ if (result == 0) {
+ /* NOTE-NIKITA quota plugin */
-+ DQUOT_FREE_SPACE_NODIRTY(dir, length);
++ vfs_dq_free_space_nodirty(dir, length);
+ }
+ return result;
+}
+ * were real data which are all zeros. Therefore we have to
+ * allocate quota here as well
+ */
-+ if (DQUOT_ALLOC_SPACE_NODIRTY(inode, flow->length))
++ if (vfs_dq_alloc_space_nodirty(inode, flow->length))
+ return RETERR(-EDQUOT);
+ result = reiser4_insert_flow(coord, lh, flow);
+ if (flow->length)
-+ DQUOT_FREE_SPACE_NODIRTY(inode, flow->length);
++ vfs_dq_free_space_nodirty(inode, flow->length);
+
+ uf_info = unix_file_inode_data(inode);
+
+ }
+
+ /* check quota before appending data */
-+ if (DQUOT_ALLOC_SPACE_NODIRTY(inode, flow->length))
++ if (vfs_dq_alloc_space_nodirty(inode, flow->length))
+ return RETERR(-EDQUOT);
+
+ to_write = flow->length;
+ result = reiser4_insert_flow(coord, lh, flow);
+ if (flow->length)
-+ DQUOT_FREE_SPACE_NODIRTY(inode, flow->length);
++ vfs_dq_free_space_nodirty(inode, flow->length);
+ return (to_write - flow->length) ? (to_write - flow->length) : result;
+}
+
+ * were real data which are all zeros. Therefore we have to
+ * allocate quota here as well
+ */
-+ if (DQUOT_ALLOC_SPACE_NODIRTY(inode, flow->length))
++ if (vfs_dq_alloc_space_nodirty(inode, flow->length))
+ return RETERR(-EDQUOT);
+ result = reiser4_insert_flow(coord, lh, flow);
+ if (flow->length)
-+ DQUOT_FREE_SPACE_NODIRTY(inode, flow->length);
++ vfs_dq_free_space_nodirty(inode, flow->length);
+ return result;
+ }
+
+ /* check quota before appending data */
-+ if (DQUOT_ALLOC_SPACE_NODIRTY(inode, flow->length))
++ if (vfs_dq_alloc_space_nodirty(inode, flow->length))
+ return RETERR(-EDQUOT);
+
+ to_write = flow->length;
+ result = reiser4_insert_flow(coord, lh, flow);
+ if (flow->length)
-+ DQUOT_FREE_SPACE_NODIRTY(inode, flow->length);
++ vfs_dq_free_space_nodirty(inode, flow->length);
+ return (to_write - flow->length) ? (to_write - flow->length) : result;
+}
+