[Unionfs] RT patch - again

Paul Hewlett paul at gccs.co.za
Thu Nov 22 06:17:39 EST 2007


Please ignore previous post - here is correct patch (apologies)

diff -urN unionfs.org/dentry.c unionfs/dentry.c
--- unionfs.org/dentry.c	2007-11-22 13:08:11.000000000 +0200
+++ unionfs/dentry.c	2007-11-20 09:32:24.000000000 +0200
@@ -268,7 +268,7 @@
 	/* remove all non-private mappings */
 	unmap_mapping_range(inode->i_mapping, 0, 0, 0);
 
-	if (inode->i_data.nrpages)
+	if (mapping_nrpages(&inode->i_data))
 		truncate_inode_pages(&inode->i_data, 0);
 }
 
diff -urN unionfs.org/super.c unionfs/super.c
--- unionfs.org/super.c	2007-11-22 13:07:46.000000000 +0200
+++ unionfs/super.c	2007-11-20 09:32:10.000000000 +0200
@@ -71,7 +71,7 @@
 {
 	i_size_write(inode, 0);	/* every f/s seems to do that */
 
-	if (inode->i_data.nrpages)
+	if (mapping_nrpages(&inode->i_data))
 		truncate_inode_pages(&inode->i_data, 0);
 
 	clear_inode(inode);

-- 
Paul Hewlett  Technical Director 
Global Call Center Solutions Ltd, 2nd Floor, Milnerton Mall
Cnr Loxton & Koeberg Roads, 7435 Milnerton
www.gccs.co.za
Tel: +27 86 111 3433 Fax: +27 86 111 3520 Cel: +27 76 072 7906
VOIP: 087 750 7474



More information about the unionfs mailing list