packages: kernel/kernel-vserver-2.3.patch - better fix for timespec issue (...

arekm arekm at pld-linux.org
Sun Oct 24 15:11:01 CEST 2010


Author: arekm                        Date: Sun Oct 24 13:11:01 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- better fix for timespec issue (from upstream)

---- Files affected:
packages/kernel:
   kernel-vserver-2.3.patch (1.49 -> 1.50) 

---- Diffs:

================================================================
Index: packages/kernel/kernel-vserver-2.3.patch
diff -u packages/kernel/kernel-vserver-2.3.patch:1.49 packages/kernel/kernel-vserver-2.3.patch:1.50
--- packages/kernel/kernel-vserver-2.3.patch:1.49	Thu Oct 21 21:39:03 2010
+++ packages/kernel/kernel-vserver-2.3.patch	Sun Oct 24 15:10:56 2010
@@ -26915,3 +26915,31 @@
  #include <linux/parser.h>
  #include <linux/nfs_mount.h>
  #include <net/ipv6.h>
+diff -NurpP --minimal linux-2.6.36-vs2.3.0.36.36/fs/namei.c linux-2.6.36-vs2.3.0.36.37/fs/namei.c
+--- linux-2.6.36-vs2.3.0.36.36/fs/namei.c	2010-10-21 22:09:46.000000000 +0200
++++ linux-2.6.36-vs2.3.0.36.37/fs/namei.c	2010-10-21 22:29:08.000000000 +0200
+@@ -194,7 +194,7 @@ static int __dx_permission(const struct 
+ 		    vx_check((xid_t)inode->i_tag, VS_IDENT | VS_WATCH_P))
+ 			return 0;
+ 
+-		/* just say we didn't find anything */
++		/* just pretend we didn't find anything */
+ 		return -ENOENT;
+ 	}
+ 	else if (inode->i_sb->s_magic == PROC_SUPER_MAGIC) {
+diff -NurpP --minimal linux-2.6.36-vs2.3.0.36.36/kernel/vserver/cvirt.c linux-2.6.36-vs2.3.0.36.37/kernel/vserver/cvirt.c
+--- linux-2.6.36-vs2.3.0.36.36/kernel/vserver/cvirt.c	2010-10-21 14:47:08.000000000 +0200
++++ linux-2.6.36-vs2.3.0.36.37/kernel/vserver/cvirt.c	2010-10-24 12:39:42.000000000 +0200
+@@ -292,10 +292,10 @@ int vx_settimeofday(struct timespec *ts)
+ 		return do_settimeofday(ts);
+ 
+ 	getnstimeofday(&ats);
+-	delta = timespec_sub(ts, &ats);
++	delta = timespec_sub(*ts, ats);
+ 
+ 	vxi = current_vx_info();
+-	vxi->cvirt.bias_ts = timespec_add(&vxi->cvirt.bias_ts, &delta);
++	vxi->cvirt.bias_ts = timespec_add(vxi->cvirt.bias_ts, delta);
+ 	return 0;
+ }
+ 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel-vserver-2.3.patch?r1=1.49&r2=1.50&f=u



More information about the pld-cvs-commit mailing list