@@ -309,7 +309,8 @@ static int ceph_readpages(struct file *file, struct address_space *mapping,
309309 zero_user_segment (page , s , PAGE_CACHE_SIZE );
310310 }
311311
312- if (add_to_page_cache_lru (page , mapping , page -> index , GFP_NOFS )) {
312+ if (add_to_page_cache_lru (page , mapping , page -> index ,
313+ GFP_NOFS )) {
313314 page_cache_release (page );
314315 dout ("readpages %p add_to_page_cache failed %p\n" ,
315316 inode , page );
@@ -797,9 +798,12 @@ static int ceph_writepages_start(struct address_space *mapping,
797798 dout ("%p will write page %p idx %lu\n" ,
798799 inode , page , page -> index );
799800
800- writeback_stat = atomic_long_inc_return (& client -> writeback_count );
801- if (writeback_stat > CONGESTION_ON_THRESH (client -> mount_args -> congestion_kb )) {
802- set_bdi_congested (& client -> backing_dev_info , BLK_RW_ASYNC );
801+ writeback_stat =
802+ atomic_long_inc_return (& client -> writeback_count );
803+ if (writeback_stat > CONGESTION_ON_THRESH (
804+ client -> mount_args -> congestion_kb )) {
805+ set_bdi_congested (& client -> backing_dev_info ,
806+ BLK_RW_ASYNC );
803807 }
804808
805809 set_page_writeback (page );
@@ -1036,7 +1040,7 @@ static int ceph_write_begin(struct file *file, struct address_space *mapping,
10361040 * pagep = page ;
10371041
10381042 dout ("write_begin file %p inode %p page %p %d~%d\n" , file ,
1039- inode , page , (int )pos , (int )len );
1043+ inode , page , (int )pos , (int )len );
10401044
10411045 r = ceph_update_writeable_page (file , pos , len , page );
10421046 } while (r == - EAGAIN );
0 commit comments