mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
[XFS] Take a dentry structure off the stack into the data segment.
SGI-PV: 947312 SGI-Modid: xfs-linux-melb:xfs-kern:25361a Signed-off-by: Nathan Scott <nathans@sgi.com>
This commit is contained in:
parent
8f79405527
commit
9b94c2eddf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user