Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
9043ec66
Commit
9043ec66
authored
Nov 06, 2002
by
Christoph Hellwig
Committed by
Nathan Scott
Nov 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] fix kNFSD operation
SGI Modid: 2.5.x-xfs:slinx:131214a
parent
88d015b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
fs/xfs/linux/xfs_super.c
fs/xfs/linux/xfs_super.c
+36
-4
No files found.
fs/xfs/linux/xfs_super.c
View file @
9043ec66
...
...
@@ -912,6 +912,37 @@ linvfs_get_parent(
return
parent
;
}
STATIC
struct
dentry
*
linvfs_get_dentry
(
struct
super_block
*
sb
,
void
*
data
)
{
vnode_t
*
vp
;
struct
inode
*
inode
;
struct
dentry
*
result
;
xfs_fid2_t
xfid
;
vfs_t
*
vfsp
=
LINVFS_GET_VFS
(
sb
);
int
error
;
xfid
.
fid_len
=
sizeof
(
xfs_fid2_t
)
-
sizeof
(
xfid
.
fid_len
);
xfid
.
fid_pad
=
0
;
xfid
.
fid_gen
=
((
__u32
*
)
data
)[
1
];
xfid
.
fid_ino
=
((
__u32
*
)
data
)[
0
];
VFS_VGET
(
vfsp
,
&
vp
,
(
fid_t
*
)
&
xfid
,
error
);
if
(
error
||
vp
==
NULL
)
return
ERR_PTR
(
-
ESTALE
)
;
inode
=
LINVFS_GET_IP
(
vp
);
result
=
d_alloc_anon
(
inode
);
if
(
!
result
)
{
iput
(
inode
);
return
ERR_PTR
(
-
ENOMEM
);
}
result
->
d_vfs_flags
|=
DCACHE_REFERENCED
;
return
result
;
}
STATIC
struct
super_block
*
linvfs_get_sb
(
struct
file_system_type
*
fs_type
,
...
...
@@ -922,10 +953,6 @@ linvfs_get_sb(
return
get_sb_bdev
(
fs_type
,
flags
,
dev_name
,
data
,
linvfs_fill_super
);
}
STATIC
struct
export_operations
linvfs_export_ops
=
{
.
get_parent
=
linvfs_get_parent
,
};
STATIC
int
linvfs_show_options
(
struct
seq_file
*
m
,
...
...
@@ -936,6 +963,11 @@ linvfs_show_options(
return
xfs_showargs
(
vfsp
,
m
);
}
STATIC
struct
export_operations
linvfs_export_ops
=
{
.
get_parent
=
linvfs_get_parent
,
.
get_dentry
=
linvfs_get_dentry
,
};
STATIC
struct
super_operations
linvfs_sops
=
{
.
alloc_inode
=
linvfs_alloc_inode
,
.
destroy_inode
=
linvfs_destroy_inode
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment