Skip to contentSkip to conversation

kNFSd - 2 of 6 - Set d_op when creating a parent directory during nfsd fh->dentry conversion

PATCH New NeilBrown 1 participant 1 message Sep 4, 2003

Subsystems (2)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 kNFSd - 2 of 6 - Set d_op when creating a parent directory during nfsd fh->dentry conversion

### Comments for ChangeSet

While it is not necessarily safe to assume the parent has the same d_op as the child, it is safe than assuming the parent has a d_op of NULL.

----------- Diffstat output ------------

 ./fs/nfsd/nfsfh.c |    1 +
 1 files changed, 1 insertion(+)
fs/nfsd/nfsfh.c renamed from fs/nfsd/nfsfh.c~current~ +1 -0
diff ./fs/nfsd/nfsfh.c~current~ ./fs/nfsd/nfsfh.c
@@ -305,6 +305,7 @@ struct dentry *nfsd_findparent(struct de
 			if (pdentry) {
 				igrab(tdentry->d_inode);
 				pdentry->d_flags |= DCACHE_NFSD_DISCONNECTED;
+				pdentry->d_op = child->d_op;
 			}
 		}
 		if (pdentry == NULL)

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs