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
0f301bd3
Commit
0f301bd3
authored
May 02, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ubifs: switch to simple_follow_link()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4b8061a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
fs/ubifs/dir.c
fs/ubifs/dir.c
+1
-0
fs/ubifs/file.c
fs/ubifs/file.c
+1
-10
fs/ubifs/super.c
fs/ubifs/super.c
+1
-0
No files found.
fs/ubifs/dir.c
View file @
0f301bd3
...
...
@@ -889,6 +889,7 @@ static int ubifs_symlink(struct inode *dir, struct dentry *dentry,
memcpy
(
ui
->
data
,
symname
,
len
);
((
char
*
)
ui
->
data
)[
len
]
=
'\0'
;
inode
->
i_link
=
ui
->
data
;
/*
* The terminating zero byte is not written to the flash media and it
* is put just to make later in-memory string processing simpler. Thus,
...
...
fs/ubifs/file.c
View file @
0f301bd3
...
...
@@ -51,7 +51,6 @@
#include "ubifs.h"
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/slab.h>
static
int
read_block
(
struct
inode
*
inode
,
void
*
addr
,
unsigned
int
block
,
...
...
@@ -1300,14 +1299,6 @@ static void ubifs_invalidatepage(struct page *page, unsigned int offset,
ClearPageChecked
(
page
);
}
static
void
*
ubifs_follow_link
(
struct
dentry
*
dentry
,
struct
nameidata
*
nd
)
{
struct
ubifs_inode
*
ui
=
ubifs_inode
(
d_inode
(
dentry
));
nd_set_link
(
nd
,
ui
->
data
);
return
NULL
;
}
int
ubifs_fsync
(
struct
file
*
file
,
loff_t
start
,
loff_t
end
,
int
datasync
)
{
struct
inode
*
inode
=
file
->
f_mapping
->
host
;
...
...
@@ -1570,7 +1561,7 @@ const struct inode_operations ubifs_file_inode_operations = {
const
struct
inode_operations
ubifs_symlink_inode_operations
=
{
.
readlink
=
generic_readlink
,
.
follow_link
=
ubifs
_follow_link
,
.
follow_link
=
simple
_follow_link
,
.
setattr
=
ubifs_setattr
,
.
getattr
=
ubifs_getattr
,
.
setxattr
=
ubifs_setxattr
,
...
...
fs/ubifs/super.c
View file @
0f301bd3
...
...
@@ -195,6 +195,7 @@ struct inode *ubifs_iget(struct super_block *sb, unsigned long inum)
}
memcpy
(
ui
->
data
,
ino
->
data
,
ui
->
data_len
);
((
char
*
)
ui
->
data
)[
ui
->
data_len
]
=
'\0'
;
inode
->
i_link
=
ui
->
data
;
break
;
case
S_IFBLK
:
case
S_IFCHR
:
...
...
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