Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
140150db
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录