A further fix on top of STABLE14-linux-truncate-race-
20090109.
- 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)
#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 */
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;