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
ac194dcc
Commit
ac194dcc
authored
May 02, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: switch to simple_follow_link()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a5ef103d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
fs/ceph/inode.c
fs/ceph/inode.c
+2
-9
No files found.
fs/ceph/inode.c
View file @
ac194dcc
...
...
@@ -6,7 +6,6 @@
#include <linux/string.h>
#include <linux/uaccess.h>
#include <linux/kernel.h>
#include <linux/namei.h>
#include <linux/writeback.h>
#include <linux/vmalloc.h>
#include <linux/posix_acl.h>
...
...
@@ -819,6 +818,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page,
else
kfree
(
sym
);
/* lost a race */
}
inode
->
i_link
=
ci
->
i_symlink
;
break
;
case
S_IFDIR
:
inode
->
i_op
=
&
ceph_dir_iops
;
...
...
@@ -1691,16 +1691,9 @@ void __ceph_do_pending_vmtruncate(struct inode *inode)
/*
* symlinks
*/
static
void
*
ceph_sym_follow_link
(
struct
dentry
*
dentry
,
struct
nameidata
*
nd
)
{
struct
ceph_inode_info
*
ci
=
ceph_inode
(
d_inode
(
dentry
));
nd_set_link
(
nd
,
ci
->
i_symlink
);
return
NULL
;
}
static
const
struct
inode_operations
ceph_symlink_iops
=
{
.
readlink
=
generic_readlink
,
.
follow_link
=
ceph_sym
_follow_link
,
.
follow_link
=
simple
_follow_link
,
.
setattr
=
ceph_setattr
,
.
getattr
=
ceph_getattr
,
.
setxattr
=
ceph_setxattr
,
...
...
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