OpenAFS CVS Commit: openafs/src/afs/LINUX by shadow
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Thu, 09 Dec 2004 11:14:22 EST
Update of /cvs/openafs/src/afs/LINUX
In directory GRAND.CENTRAL.ORG:/data/sb/openafs/src/afs/LINUX
Modified Files:
osi_vnodeops.c
Log Message:
DELTA linux-remove-negative-dentry-20041209
AUTHOR chas@cmf.nrl.navy.mil
FIXES 16735
during unlink, afs sometimes renames the file instead of deleting it.
this isnt reflected properly in the dcache in linux. the following
patch attempts to address this issue. newname is renamed to afs_newname
and exported.
afs_linux_unlink() checks to see if the file is open. if so, it creates
a negative dcache entry using the name suggested by afs_newname(). then
dmove() moves (exchanges) dp and __dp. __dp is now a negative dentry
for the old name and is put/dropped.
--- DELTA config follows ---
linux-remove-negative-dentry-20041209 openafs/src/afs/LINUX/osi_vnodeops.c 1.89 1.90