]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Apply upstream STABLE14-linux-i-size-20090112
authorRuss Allbery <rra@debian.org>
Thu, 12 Feb 2009 18:55:36 +0000 (10:55 -0800)
committerRuss Allbery <rra@debian.org>
Thu, 12 Feb 2009 18:55:36 +0000 (10:55 -0800)
A further fix on top of STABLE14-linux-truncate-race-20090109.

debian/changelog
src/afs/LINUX/osi_file.c

index 786100e1b8d9d384fc225414abb5492db2588e29..7d84cafe76b021d4a67d7111f2a712a1989bd8d2 100644 (file)
@@ -9,6 +9,7 @@ openafs (1.4.8.dfsg1-1) UNRELEASED; urgency=low
     - STABLE14-libuafs-updates-20081229: prerequisite for other deltas.
     - STABLE14-linux-truncate-race-20090109: avoid race condition during
       truncation.
+    - STABLE14-linux-i-size-20090112: further fix for truncation race.
   * Make dynroot the default for new installations.  It works much better
     with systems that don't bring up their network until late in the boot
     process, such as wireless laptops.  (LP: #249240, #318605)
index 17d581110047dc03a14c4a07513b1909ecfbdff4..8361981bb6e3ef9a463cd41afd936bdde4631ff3 100644 (file)
@@ -11,7 +11,7 @@
 #include "afs/param.h"
 
 RCSID
-    ("$Header: /cvs/openafs/src/afs/LINUX/osi_file.c,v 1.19.2.17 2009/01/09 14:58:03 shadow Exp $");
+    ("$Header: /cvs/openafs/src/afs/LINUX/osi_file.c,v 1.19.2.18 2009/01/12 14:19:29 shadow Exp $");
 
 #ifdef AFS_LINUX24_ENV
 #include "h/module.h" /* early to avoid printf->printk mapping */
@@ -82,7 +82,7 @@ osi_UFSOpen(afs_int32 ainode)
     if (IS_ERR(filp))
        osi_Panic("Can't open inode %d\n", ainode);
     afile->filp = filp;
-    afile->size = i_size_read(FILE_INODE(filp)->i_size);
+    afile->size = i_size_read(FILE_INODE(filp));
     AFS_GLOCK();
     afile->offset = 0;
     afile->proc = (int (*)())0;