From ef23f049348ccf5e328ff8bb5478a9104612a85a Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 14 Mar 2006 13:32:54 +1100 Subject: [PATCH] --- yaml --- r: 23113 b: refs/heads/master c: 9b94c2eddf407ad8faa5672ffa691e2076167564 h: refs/heads/master i: 23111: 028ac4b3d3d202dbf0ec81a4c40b6ef2d61c4bba v: v3 --- [refs] | 2 +- trunk/fs/xfs/linux-2.6/xfs_export.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index f0422bf500ac..ef2a3d11a09f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8f79405527b50fe27cffcb7081890b5c68439b4f +refs/heads/master: 9b94c2eddf407ad8faa5672ffa691e2076167564 diff --git a/trunk/fs/xfs/linux-2.6/xfs_export.c b/trunk/fs/xfs/linux-2.6/xfs_export.c index 821bd12dd858..53ed99112365 100644 --- a/trunk/fs/xfs/linux-2.6/xfs_export.c +++ b/trunk/fs/xfs/linux-2.6/xfs_export.c @@ -25,6 +25,8 @@ #include "xfs_mount.h" #include "xfs_export.h" +STATIC struct dentry dotdot = { .d_name.name = "..", .d_name.len = 2, }; + /* * XFS encodes and decodes the fileid portion of NFS filehandles * itself instead of letting the generic NFS code do it. This @@ -160,11 +162,6 @@ linvfs_get_parent( int error; vnode_t *vp, *cvp; struct dentry *parent; - struct dentry dotdot; - - dotdot.d_name.name = ".."; - dotdot.d_name.len = 2; - dotdot.d_inode = NULL; cvp = NULL; vp = LINVFS_GET_VP(child->d_inode);