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
Kirill Smelkov
linux
Commits
a7d3e78a
Commit
a7d3e78a
authored
Mar 14, 2016
by
Mike Marshall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Orangefs: follow_link -> get_link change
Signed-off-by:
Mike Marshall
<
hubcap@omnibond.com
>
parent
53f57fef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
19 deletions
+4
-19
fs/orangefs/inode.c
fs/orangefs/inode.c
+3
-5
fs/orangefs/symlink.c
fs/orangefs/symlink.c
+1
-14
No files found.
fs/orangefs/inode.c
View file @
a7d3e78a
...
...
@@ -268,17 +268,15 @@ int orangefs_getattr(struct vfsmount *mnt,
"orangefs_getattr: called on %s
\n
"
,
dentry
->
d_name
.
name
);
/*
* Similar to the above comment, a getattr also expects that all
* fields/attributes of the inode would be refreshed. So again, we
* dont have too much of a choice but refresh all the attributes.
*/
ret
=
orangefs_inode_getattr
(
inode
,
ORANGEFS_ATTR_SYS_ALL_NOHINT
,
0
);
if
(
ret
==
0
)
{
generic_fillattr
(
inode
,
kstat
);
/* override block size reported to stat */
orangefs_inode
=
ORANGEFS_I
(
inode
);
kstat
->
blksize
=
orangefs_inode
->
blksize
;
inode
->
i_link
=
ORANGEFS_I
(
dentry
->
d_inode
)
->
link_target
;
}
else
{
/* assume an I/O error and flag inode as bad */
gossip_debug
(
GOSSIP_INODE_DEBUG
,
...
...
fs/orangefs/symlink.c
View file @
a7d3e78a
...
...
@@ -8,22 +8,9 @@
#include "orangefs-kernel.h"
#include "orangefs-bufmap.h"
static
const
char
*
orangefs_follow_link
(
struct
dentry
*
dentry
,
void
**
cookie
)
{
char
*
target
=
ORANGEFS_I
(
dentry
->
d_inode
)
->
link_target
;
gossip_debug
(
GOSSIP_INODE_DEBUG
,
"%s: called on %s (target is %p)
\n
"
,
__func__
,
(
char
*
)
dentry
->
d_name
.
name
,
target
);
*
cookie
=
target
;
return
target
;
}
struct
inode_operations
orangefs_symlink_inode_operations
=
{
.
readlink
=
generic_readlink
,
.
follow_link
=
orangefs_follow
_link
,
.
get_link
=
simple_get
_link
,
.
setattr
=
orangefs_setattr
,
.
getattr
=
orangefs_getattr
,
.
listxattr
=
orangefs_listxattr
,
...
...
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