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
213c99ee
Commit
213c99ee
authored
Aug 03, 2010
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: whitespace cleanup
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
40819f6f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
20 deletions
+27
-20
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
No files found.
fs/ceph/addr.c
View file @
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
);
...
...
fs/ceph/debugfs.c
View file @
213c99ee
...
...
@@ -432,7 +432,8 @@ 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"
,
client
->
debugfs_congestion_kb
=
debugfs_create_file
(
"writeback_congestion_kb"
,
0600
,
client
->
debugfs_dir
,
client
,
...
...
@@ -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
View file @
213c99ee
fs/ceph/mds_client.c
View file @
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
View file @
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
;
...
...
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