Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
ecc087ff
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ecc087ff
编写于
5月 07, 2015
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
new helper: free_page_put_link()
similar to kfree_put_link() Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
5f2c4179
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
18 deletion
+10
-18
fs/configfs/symlink.c
fs/configfs/symlink.c
+1
-6
fs/fuse/dir.c
fs/fuse/dir.c
+1
-6
fs/kernfs/symlink.c
fs/kernfs/symlink.c
+1
-6
fs/libfs.c
fs/libfs.c
+6
-0
include/linux/fs.h
include/linux/fs.h
+1
-0
未找到文件。
fs/configfs/symlink.c
浏览文件 @
ecc087ff
...
...
@@ -296,15 +296,10 @@ static const char *configfs_follow_link(struct dentry *dentry, void **cookie)
return
ERR_PTR
(
error
);
}
static
void
configfs_put_link
(
struct
inode
*
unused
,
void
*
cookie
)
{
free_page
((
unsigned
long
)
cookie
);
}
const
struct
inode_operations
configfs_symlink_inode_operations
=
{
.
follow_link
=
configfs_follow_link
,
.
readlink
=
generic_readlink
,
.
put_link
=
configfs
_put_link
,
.
put_link
=
free_page
_put_link
,
.
setattr
=
configfs_setattr
,
};
fs/fuse/dir.c
浏览文件 @
ecc087ff
...
...
@@ -1395,11 +1395,6 @@ static const char *fuse_follow_link(struct dentry *dentry, void **cookie)
return
link
;
}
static
void
fuse_put_link
(
struct
inode
*
unused
,
void
*
cookie
)
{
free_page
((
unsigned
long
)
cookie
);
}
static
int
fuse_dir_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
return
fuse_open_common
(
inode
,
file
,
true
);
...
...
@@ -1915,7 +1910,7 @@ static const struct inode_operations fuse_common_inode_operations = {
static
const
struct
inode_operations
fuse_symlink_inode_operations
=
{
.
setattr
=
fuse_setattr
,
.
follow_link
=
fuse_follow_link
,
.
put_link
=
f
us
e_put_link
,
.
put_link
=
f
ree_pag
e_put_link
,
.
readlink
=
generic_readlink
,
.
getattr
=
fuse_getattr
,
.
setxattr
=
fuse_setxattr
,
...
...
fs/kernfs/symlink.c
浏览文件 @
ecc087ff
...
...
@@ -126,11 +126,6 @@ static const char *kernfs_iop_follow_link(struct dentry *dentry, void **cookie)
return
*
cookie
=
(
char
*
)
page
;
}
static
void
kernfs_iop_put_link
(
struct
inode
*
unused
,
void
*
cookie
)
{
free_page
((
unsigned
long
)
cookie
);
}
const
struct
inode_operations
kernfs_symlink_iops
=
{
.
setxattr
=
kernfs_iop_setxattr
,
.
removexattr
=
kernfs_iop_removexattr
,
...
...
@@ -138,7 +133,7 @@ const struct inode_operations kernfs_symlink_iops = {
.
listxattr
=
kernfs_iop_listxattr
,
.
readlink
=
generic_readlink
,
.
follow_link
=
kernfs_iop_follow_link
,
.
put_link
=
kernfs_iop
_put_link
,
.
put_link
=
free_page
_put_link
,
.
setattr
=
kernfs_iop_setattr
,
.
getattr
=
kernfs_iop_getattr
,
.
permission
=
kernfs_iop_permission
,
...
...
fs/libfs.c
浏览文件 @
ecc087ff
...
...
@@ -1030,6 +1030,12 @@ void kfree_put_link(struct inode *unused, void *cookie)
}
EXPORT_SYMBOL
(
kfree_put_link
);
void
free_page_put_link
(
struct
inode
*
unused
,
void
*
cookie
)
{
free_page
((
unsigned
long
)
cookie
);
}
EXPORT_SYMBOL
(
free_page_put_link
);
/*
* nop .set_page_dirty method so that people can use .page_mkwrite on
* anon inodes.
...
...
include/linux/fs.h
浏览文件 @
ecc087ff
...
...
@@ -2712,6 +2712,7 @@ extern int __page_symlink(struct inode *inode, const char *symname, int len,
extern
int
page_symlink
(
struct
inode
*
inode
,
const
char
*
symname
,
int
len
);
extern
const
struct
inode_operations
page_symlink_inode_operations
;
extern
void
kfree_put_link
(
struct
inode
*
,
void
*
);
extern
void
free_page_put_link
(
struct
inode
*
,
void
*
);
extern
int
generic_readlink
(
struct
dentry
*
,
char
__user
*
,
int
);
extern
void
generic_fillattr
(
struct
inode
*
,
struct
kstat
*
);
int
vfs_getattr_nosec
(
struct
path
*
path
,
struct
kstat
*
stat
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录