From fe8c1d006467279281bca75406cb007e146a1eb8 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 14 May 2009 21:50:53 +0000 Subject: [PATCH] DEVEL15-vol-split-no-nearinode-hint-for-namei-20090514 LICENSE IPL10 nearinode hint makes no sense when you're not using inode fileserver (cherry picked from commit 1f07c903055c54fb7f0a584e88cfc1c289a161c6) --- src/volser/vol_split.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/volser/vol_split.c b/src/volser/vol_split.c index d65a1429ce..4a9cd9bfcc 100644 --- a/src/volser/vol_split.c +++ b/src/volser/vol_split.c @@ -361,7 +361,7 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol, FdHandle_t *infdP = 0; FdHandle_t *outfdP = 0; char *tbuf = malloc(2048); -#if defined(NEARINODE_HINT) +#if defined(NEARINODE_HINT) && !defined(AFS_NAMEI_ENV) Inode nearInode; V_pref(vol,nearInode) #endif @@ -396,7 +396,7 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol, if (ino) { IHandle_t *h, *newh; Inode nearInode; -#if defined(NEARINODE_HINT) +#if defined(NEARINODE_HINT) && !defined(AFS_NAMEI_ENV) V_pref(vol,nearInode) #endif IH_INIT(h, vol->device, V_parentId(vol), ino); @@ -564,7 +564,7 @@ createMountpoint(Volume *vol, Volume *newvol, struct VnodeDiskObject *parent, vnode.parent = vN; newvN = (offset >> (VnodeClassInfo[class].logSize - 1)) - 1 + class; -#if defined(NEARINODE_HINT) +#if defined(NEARINODE_HINT) && !defined(AFS_NAMEI_ENV) V_pref(vol,nearInode) #endif newino = IH_CREATE(V_linkHandle(vol), V_device(vol),