Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
213c99ee
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看板
提交
213c99ee
编写于
8月 03, 2010
作者:
S
Sage Weil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ceph: whitespace cleanup
Signed-off-by:
N
Sage Weil
<
sage@newdream.net
>
上级
40819f6f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
31 addition
and
24 deletion
+31
-24
fs/ceph/addr.c
fs/ceph/addr.c
+9
-5
fs/ceph/debugfs.c
fs/ceph/debugfs.c
+9
-8
fs/ceph/file.c
fs/ceph/file.c
+1
-1
fs/ceph/mds_client.c
fs/ceph/mds_client.c
+3
-2
fs/ceph/messenger.c
fs/ceph/messenger.c
+5
-4
fs/ceph/osd_client.c
fs/ceph/osd_client.c
+3
-3
fs/ceph/osdmap.c
fs/ceph/osdmap.c
+1
-1
未找到文件。
fs/ceph/addr.c
浏览文件 @
213c99ee
...
...
@@ -309,7 +309,8 @@ static int ceph_readpages(struct file *file, struct address_space *mapping,
zero_user_segment
(
page
,
s
,
PAGE_CACHE_SIZE
);
}
if
(
add_to_page_cache_lru
(
page
,
mapping
,
page
->
index
,
GFP_NOFS
))
{
if
(
add_to_page_cache_lru
(
page
,
mapping
,
page
->
index
,
GFP_NOFS
))
{
page_cache_release
(
page
);
dout
(
"readpages %p add_to_page_cache failed %p
\n
"
,
inode
,
page
);
...
...
@@ -797,9 +798,12 @@ static int ceph_writepages_start(struct address_space *mapping,
dout
(
"%p will write page %p idx %lu
\n
"
,
inode
,
page
,
page
->
index
);
writeback_stat
=
atomic_long_inc_return
(
&
client
->
writeback_count
);
if
(
writeback_stat
>
CONGESTION_ON_THRESH
(
client
->
mount_args
->
congestion_kb
))
{
set_bdi_congested
(
&
client
->
backing_dev_info
,
BLK_RW_ASYNC
);
writeback_stat
=
atomic_long_inc_return
(
&
client
->
writeback_count
);
if
(
writeback_stat
>
CONGESTION_ON_THRESH
(
client
->
mount_args
->
congestion_kb
))
{
set_bdi_congested
(
&
client
->
backing_dev_info
,
BLK_RW_ASYNC
);
}
set_page_writeback
(
page
);
...
...
@@ -1036,7 +1040,7 @@ static int ceph_write_begin(struct file *file, struct address_space *mapping,
*
pagep
=
page
;
dout
(
"write_begin file %p inode %p page %p %d~%d
\n
"
,
file
,
inode
,
page
,
(
int
)
pos
,
(
int
)
len
);
inode
,
page
,
(
int
)
pos
,
(
int
)
len
);
r
=
ceph_update_writeable_page
(
file
,
pos
,
len
,
page
);
}
while
(
r
==
-
EAGAIN
);
...
...
fs/ceph/debugfs.c
浏览文件 @
213c99ee
...
...
@@ -291,7 +291,7 @@ static int dentry_lru_show(struct seq_file *s, void *ptr)
return
0
;
}
#define DEFINE_SHOW_FUNC(name)
\
#define DEFINE_SHOW_FUNC(name) \
static int name##_open(struct inode *inode, struct file *file) \
{ \
struct seq_file *sf; \
...
...
@@ -432,11 +432,12 @@ int ceph_debugfs_client_init(struct ceph_client *client)
if
(
!
client
->
debugfs_caps
)
goto
out
;
client
->
debugfs_congestion_kb
=
debugfs_create_file
(
"writeback_congestion_kb"
,
0600
,
client
->
debugfs_dir
,
client
,
&
congestion_kb_fops
);
client
->
debugfs_congestion_kb
=
debugfs_create_file
(
"writeback_congestion_kb"
,
0600
,
client
->
debugfs_dir
,
client
,
&
congestion_kb_fops
);
if
(
!
client
->
debugfs_congestion_kb
)
goto
out
;
...
...
@@ -466,7 +467,7 @@ void ceph_debugfs_client_cleanup(struct ceph_client *client)
debugfs_remove
(
client
->
debugfs_dir
);
}
#else /
/ CONFIG_DEBUG_FS
#else
/
* CONFIG_DEBUG_FS */
int
__init
ceph_debugfs_init
(
void
)
{
...
...
@@ -486,4 +487,4 @@ void ceph_debugfs_client_cleanup(struct ceph_client *client)
{
}
#endif /
/ CONFIG_DEBUG_FS
#endif
/
* CONFIG_DEBUG_FS */
fs/ceph/file.c
浏览文件 @
213c99ee
...
...
@@ -665,7 +665,7 @@ static ssize_t ceph_sync_write(struct file *file, const char __user *data,
* throw out any page cache pages in this range. this
* may block.
*/
truncate_inode_pages_range
(
inode
->
i_mapping
,
pos
,
truncate_inode_pages_range
(
inode
->
i_mapping
,
pos
,
(
pos
+
len
)
|
(
PAGE_CACHE_SIZE
-
1
));
}
else
{
pages
=
ceph_alloc_page_vector
(
num_pages
,
GFP_NOFS
);
...
...
fs/ceph/mds_client.c
浏览文件 @
213c99ee
...
...
@@ -1985,8 +1985,9 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
*/
if
(
result
==
-
ESTALE
)
{
dout
(
"got ESTALE on request %llu"
,
req
->
r_tid
);
if
(
!
req
->
r_inode
)
;
//do nothing; not an authority problem
else
if
(
req
->
r_direct_mode
!=
USE_AUTH_MDS
)
{
if
(
!
req
->
r_inode
)
{
/* do nothing; not an authority problem */
}
else
if
(
req
->
r_direct_mode
!=
USE_AUTH_MDS
)
{
dout
(
"not using auth, setting for that now"
);
req
->
r_direct_mode
=
USE_AUTH_MDS
;
__do_request
(
mdsc
,
req
);
...
...
fs/ceph/messenger.c
浏览文件 @
213c99ee
...
...
@@ -1302,8 +1302,8 @@ static void process_ack(struct ceph_connection *con)
static
int
read_partial_message_section
(
struct
ceph_connection
*
con
,
struct
kvec
*
section
,
unsigned
int
sec_len
,
u32
*
crc
)
struct
kvec
*
section
,
u
nsigned
int
sec_len
,
u
32
*
crc
)
{
int
left
;
int
ret
;
...
...
@@ -1434,7 +1434,8 @@ static int read_partial_message(struct ceph_connection *con)
/* middle */
if
(
m
->
middle
)
{
ret
=
read_partial_message_section
(
con
,
&
m
->
middle
->
vec
,
middle_len
,
ret
=
read_partial_message_section
(
con
,
&
m
->
middle
->
vec
,
middle_len
,
&
con
->
in_middle_crc
);
if
(
ret
<=
0
)
return
ret
;
...
...
@@ -1920,7 +1921,7 @@ static void ceph_fault(struct ceph_connection *con)
/*
* in case we faulted due to authentication, invalidate our
* current tickets so that we can get new ones.
*/
*/
if
(
con
->
auth_retry
&&
con
->
ops
->
invalidate_authorizer
)
{
dout
(
"calling invalidate_authorizer()
\n
"
);
con
->
ops
->
invalidate_authorizer
(
con
);
...
...
fs/ceph/osd_client.c
浏览文件 @
213c99ee
...
...
@@ -1473,8 +1473,8 @@ static void put_osd_con(struct ceph_connection *con)
* authentication
*/
static
int
get_authorizer
(
struct
ceph_connection
*
con
,
void
**
buf
,
int
*
len
,
int
*
proto
,
void
**
reply_buf
,
int
*
reply_len
,
int
force_new
)
void
**
buf
,
int
*
len
,
int
*
proto
,
void
**
reply_buf
,
int
*
reply_len
,
int
force_new
)
{
struct
ceph_osd
*
o
=
con
->
private
;
struct
ceph_osd_client
*
osdc
=
o
->
o_osdc
;
...
...
@@ -1494,7 +1494,7 @@ static int get_authorizer(struct ceph_connection *con,
&
o
->
o_authorizer_reply_buf
,
&
o
->
o_authorizer_reply_buf_len
);
if
(
ret
)
return
ret
;
return
ret
;
}
*
proto
=
ac
->
protocol
;
...
...
fs/ceph/osdmap.c
浏览文件 @
213c99ee
...
...
@@ -855,7 +855,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
node
)
->
pgid
,
pgid
)
<=
0
)
{
struct
ceph_pg_mapping
*
cur
=
rb_entry
(
rbp
,
struct
ceph_pg_mapping
,
node
);
rbp
=
rb_next
(
rbp
);
dout
(
" removed pg_temp %llx
\n
"
,
*
(
u64
*
)
&
cur
->
pgid
);
rb_erase
(
&
cur
->
node
,
&
map
->
pg_temp
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录