packages: kernel/kernel-reiser4.patch - more updated
arekm
arekm at pld-linux.org
Tue Jul 21 01:10:57 CEST 2009
Author: arekm Date: Mon Jul 20 23:10:57 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- more updated
---- Files affected:
packages/kernel:
kernel-reiser4.patch (1.5 -> 1.6)
---- Diffs:
================================================================
Index: packages/kernel/kernel-reiser4.patch
diff -u packages/kernel/kernel-reiser4.patch:1.5 packages/kernel/kernel-reiser4.patch:1.6
--- packages/kernel/kernel-reiser4.patch:1.5 Mon Jul 20 23:20:49 2009
+++ packages/kernel/kernel-reiser4.patch Tue Jul 21 01:10:51 2009
@@ -42822,7 +42822,7 @@
+ 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)
@@ -42873,7 +42873,7 @@
+ 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;
+}
@@ -45177,7 +45177,7 @@
+
+ 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);
+
@@ -45325,7 +45325,7 @@
+ 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);
+
+ /*
@@ -45539,7 +45539,7 @@
+ 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)
@@ -48107,7 +48107,7 @@
+ 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 */
@@ -50268,7 +50268,7 @@
+ 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 */ );
@@ -50316,7 +50316,7 @@
+ 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;
+}
@@ -52245,11 +52245,11 @@
+ * 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);
+
@@ -52269,13 +52269,13 @@
+ }
+
+ /* 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;
+}
+
@@ -52304,22 +52304,22 @@
+ * 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;
+}
+
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel-reiser4.patch?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list