OpenAFS CVS Commit: openafs/src/afs/LINUX by shadow

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 13 Dec 2004 14:35:03 EST


Update of /cvs/openafs/src/afs/LINUX
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-stable-1_4_x/src/afs/LINUX

Modified Files:
      Tag: openafs-stable-1_4_x
	osi_vnodeops.c 
Log Message:
DELTA STABLE14-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 for openafs-stable-1_4_x follows ---
STABLE14-linux-remove-negative-dentry-20041209 openafs/src/afs/LINUX/osi_vnodeops.c 1.81.2.5 1.81.2.6