Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
140150db
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
140150db
编写于
6月 05, 2012
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SUNRPC: Remove unused function xdr_encode_pages
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
b42353ff
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
1 addition
and
33 deletion
+1
-33
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+1
-3
include/linux/sunrpc/xdr.h
include/linux/sunrpc/xdr.h
+0
-2
net/sunrpc/xdr.c
net/sunrpc/xdr.c
+0
-28
未找到文件。
fs/nfs/nfs4proc.c
浏览文件 @
140150db
...
...
@@ -2766,9 +2766,7 @@ static int nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entry)
*
* In the case of WRITE, we also want to put the GETATTR after
* the operation -- in this case because we want to make sure
* we get the post-operation mtime and size. This means that
* we can't use xdr_encode_pages() as written: we need a variant
* of it which would leave room in the 'tail' iovec.
* we get the post-operation mtime and size.
*
* Both of these changes to the XDR layer would in fact be quite
* minor, but I decided to leave them for a subsequent patch.
...
...
include/linux/sunrpc/xdr.h
浏览文件 @
140150db
...
...
@@ -104,8 +104,6 @@ __be32 *xdr_decode_string_inplace(__be32 *p, char **sp, unsigned int *lenp,
__be32
*
xdr_encode_netobj
(
__be32
*
p
,
const
struct
xdr_netobj
*
);
__be32
*
xdr_decode_netobj
(
__be32
*
p
,
struct
xdr_netobj
*
);
void
xdr_encode_pages
(
struct
xdr_buf
*
,
struct
page
**
,
unsigned
int
,
unsigned
int
);
void
xdr_inline_pages
(
struct
xdr_buf
*
,
unsigned
int
,
struct
page
**
,
unsigned
int
,
unsigned
int
);
void
xdr_terminate_string
(
struct
xdr_buf
*
,
const
u32
);
...
...
net/sunrpc/xdr.c
浏览文件 @
140150db
...
...
@@ -128,34 +128,6 @@ xdr_terminate_string(struct xdr_buf *buf, const u32 len)
}
EXPORT_SYMBOL_GPL
(
xdr_terminate_string
);
void
xdr_encode_pages
(
struct
xdr_buf
*
xdr
,
struct
page
**
pages
,
unsigned
int
base
,
unsigned
int
len
)
{
struct
kvec
*
tail
=
xdr
->
tail
;
u32
*
p
;
xdr
->
pages
=
pages
;
xdr
->
page_base
=
base
;
xdr
->
page_len
=
len
;
p
=
(
u32
*
)
xdr
->
head
[
0
].
iov_base
+
XDR_QUADLEN
(
xdr
->
head
[
0
].
iov_len
);
tail
->
iov_base
=
p
;
tail
->
iov_len
=
0
;
if
(
len
&
3
)
{
unsigned
int
pad
=
4
-
(
len
&
3
);
*
p
=
0
;
tail
->
iov_base
=
(
char
*
)
p
+
(
len
&
3
);
tail
->
iov_len
=
pad
;
len
+=
pad
;
}
xdr
->
buflen
+=
len
;
xdr
->
len
+=
len
;
}
EXPORT_SYMBOL_GPL
(
xdr_encode_pages
);
void
xdr_inline_pages
(
struct
xdr_buf
*
xdr
,
unsigned
int
offset
,
struct
page
**
pages
,
unsigned
int
base
,
unsigned
int
len
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录