/drivers/usb/mon/

IDIA Tegra 3 SoC Jonathan Herman
aboutsummaryrefslogblamecommitdiffstats
path: root/fs/mpage.c
blob: d54f8f8972242a62e437bc904059773d2c697e6d (plain) (tree)








































                                                                               
                                                       



                                                                    














                                                         

 
                                                        



                                                                    





                                                         
                               
                                           


                                                                       


                                         

 
                                                            










                                                    
                                



























































                                                                              








                                                                               

                                                                        

                                                                          






                                                                    
                                    



                                              

                             

                                



                                   
                                                                              




































                                                                               
 
                                                 

                                                                               
                                              
                                                             

                 
                                             


                                                          


                                                    








                                                                           

                                                                     






                                                                      
                                                                              
                                      











                                                                              


                                            


                                                                          





























                                                                            
                                                                       















                                                                 













































                                                                               






                                                                         

                                              
 
                                     




                                                                              
                                                         


                                                                   


                                                                    
                 
                                         
         













                                                            

                                              
 


                                                                  





















                                                                            








                                                                              
 

                                      
















                                                                    
                    






















































                                                                              
                                                                              




                                                              
                                             
                                                                     


































                                                                                


                                                       

                                                                      




                                                                            
                                                           























































                                                                               
                                                                     






                                                   

                                                           
                
                              




                                                                   
                                        
    

                       


























                                                                                














                                                                               
         


                                



                                                             








                                                     


                               
/*
 * fs/mpage.c
 *
 * Copyright (C) 2002, Linus Torvalds.
 *
 * Contains functions related to preparing and submitting BIOs which contain
 * multiple pagecache pages.
 *
 * 15May2002	akpm@zip.com.au
 *		Initial version
 * 27Jun2002	axboe@suse.de
 *		use bio_add_page() to build bio's just the right size
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/kdev_t.h>
#include <linux/bio.h>
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/blkdev.h>
#include <linux/highmem.h>
#include <linux/prefetch.h>
#include <linux/mpage.h>
#include <linux/writeback.h>
#include <linux/backing-dev.h>
#include <linux/pagevec.h>

/*
 * I/O completion handler for multipage BIOs.
 *
 * The mpage code never puts partial pages into a BIO (except for end-of-file).
 * If a page does not map to a contiguous run of blocks then it simply falls
 * back to block_read_full_page().
 *
 * Why is this?  If a page's completion depends on a number of different BIOs
 * which can complete in any order (or at the same time) then determining the
 * status of that page is hard.  See end_buffer_async_read() for the details.
 * There is no point in duplicating all that complexity.
 */
static void mpage_end_io_read(struct bio *bio, int err)
{
	const int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags);