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
47b3c811
Commit
47b3c811
authored
Dec 04, 2002
by
Christoph Hellwig
Committed by
Nathan Scott
Dec 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] cleanup user path walking code
SGI Modid: 2.5.x-xfs:slinx:134179a
parent
2941a57b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
fs/xfs/linux/xfs_ioctl.c
fs/xfs/linux/xfs_ioctl.c
+1
-10
No files found.
fs/xfs/linux/xfs_ioctl.c
View file @
47b3c811
...
...
@@ -75,17 +75,9 @@ xfs_find_handle(
case
XFS_IOC_PATH_TO_FSHANDLE
:
case
XFS_IOC_PATH_TO_HANDLE
:
{
struct
nameidata
nd
;
char
*
path
;
int
error
;
/* we need the path */
path
=
getname
(
hreq
.
path
);
if
(
IS_ERR
(
path
))
return
PTR_ERR
(
path
);
/* traverse the path */
error
=
path_lookup
(
path
,
0
,
&
nd
);
putname
(
path
);
error
=
user_path_walk_link
(
hreq
.
path
,
&
nd
);
if
(
error
)
return
error
;
...
...
@@ -107,7 +99,6 @@ xfs_find_handle(
ASSERT
(
file
->
f_dentry
->
d_inode
);
inode
=
igrab
(
file
->
f_dentry
->
d_inode
);
fput
(
file
);
break
;
}
...
...
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