linux/fs/block_dev.c
<<
>>
Prefs
   1/*
   2 *  linux/fs/block_dev.c
   3 *
   4 *  Copyright (C) 1991, 1992  Linus Torvalds
   5 *  Copyright (C) 2001  Andrea Arcangeli <andrea@suse.de> SuSE
   6 */
   7
   8#include <linux/init.h>
   9#include <linux/mm.h>
  10#include <linux/fcntl.h>
  11#include <linux/slab.h>
  12#include <linux/kmod.h>
  13#include <linux/major.h>
  14#include <linux/device_cgroup.h>
  15#include <linux/highmem.h>
  16#include <linux/blkdev.h>
  17#include <linux/module.h>
  18#include <linux/blkpg.h>
  19#include <linux/magic.h>
  20#include <linux/buffer_head.h>
  21#include <linux/swap.h>

  
  
  
  
  
  
  v2.6.27.piteback  >
  v2.6.22.12<4
  
  v2.6.17.3  24#include <mptio>

  v2.6.17.3  25#include <linux/moun>

  v2.6.17.3  26#include <linux/buio/a>>

  v2.6.17.3  27#include <linux/mt;>

  v2.6.17.3  28#include <linux/bllog2/a>>

  v2.6.17.3  29#include <linux/macleancacho>

  v2.6.17.3  30#include <liasm-alpha/uaccess.h|fref">liasm-arm/uaccess.h|fref">liasm-avr32/uaccess.h|fref">liasm-blackfin/uaccess.h|fref">liasm-cris/uaccess.h|fref">liasm-frv/uaccess.h|fref">liasm-generic/uaccess.h|fref">liasm-h8300/uaccess.h|fref">liasm-i386/uaccess.h|fref">liasm-ia64/uaccess.h|fref">liasm-m32r/uaccess.h|fref">liasm-m68k/uaccess.h|fref">liasm-m68kn/blu/uaccess.h|fref">liasm-mips/uaccess.h|fref">liasm-mips64/uaccess.h|fref">liasm-parisc/uaccess.h|fref">liasm-powerpc/uaccess.h|fref">liasm-ppc/uaccess.h|fref">liasm-s390/uaccess.h|fref">liasm-sh/uaccess.h|fref">liasm-sh64/uaccess.h|fref">liasm-sparc/uaccess.h|fref">liasm-sparc64/uaccess.h|fref">liasm-um/uaccess.h|fref">liasm-v850/uaccess.h|fref">liasm-x86/uaccess.h|fref">liasm-x86_64/uaccess.h|fref">liasm-xtensa/uaccess.ha>>
asm/uaccess.hue="v2.6.17.3"
	  >
  v2.6.17.3  31#include <
 internah>

  v2.6.17.3#i32#include <   3<
 {d="L8" class="line" name="3"L14">  34#include <
  v2.6.17.3  35#include <
 k_dev.c"
	code=vfs_inode     
  v2.6.17.3  36#include <
  v2.6.17.3  37#include <  38#include <
 k_dev.c"
	code=def_ock_aops     
  v2.6.17.3  39#include <  40#include <
 structck_dev.c"
	code=b na_inode     
 *k_dev.c"
	code=BDEV_I     
(structck_dev.c"
	code=inode     
 *k_dev.c"
	code=inode     
)d="L8" class="line" name="4"L21">  41#include <#i42#include <
(k_dev.c"
	code=inode     
, structck_dev.c"
	code=b na_inode     
, k_dev.c"
	code=vfs_inode     
  v2.6.17.3   34
  v2.6.17.3   4<  45#include <
 structck_dev.c"
	code=bline" nafs/     
(structck_dev.c"
	code=inode     
 *k_dev.c"
	code=inode     
)d="L8" class="line" name="4"L16">  46#include <  47#include <
(k_dev.c"
	code=inode     
)-v2.6k_dev.c"
	code=b na     
  v2.6.17.3  48#include <
  v2.6.17.3  49#include <
(k_dev.c"
	code=I_BDEV     
)_.17.3"
	  >
  v2.6.17.3  50#include <  51#include <#i52#include <   35   45   5<  56#include <
(structck_dev.c"
	code=inode     
 *k_dev.c"
	code=inode     
,d="L7" class="line" name="5"L17">  57#include <
 *k_dev.c"
	code=d	
)d="L8" class="line" name="5"L18">  58#include <  59#include <
 *k_dev.c"
	code=old     
 =ck_dev.c"
	code=inode     
-v2.6k_dev.c"
	code=i_data     
.k_dev.c"
	code=backing_ na_info     
_.17.3"
	  >
  v2.6.17.3  60#include <  61#include <
(k_dev.c"
	code=d	
 ==ck_dev.c"
	code=old     
))               >
#i62#include <
  v2.6.17.3   36
(&k_dev.c"
	code=old     
-v2.6k_dev.c"
	code=wb     
, &k_dev.c"
	code=d	
-v2.6k_dev.c"
	code=wb     
)_.17.3"
	  >
  v2.6.17.3   46
(&k_dev.c"
	code=inode     
-v2.6k_dev.c"
	code=i_v2.6     
)_.17.3"
	  >
  v2.6.17.3   56
-v2.6k_dev.c"
	code=i_data     
.k_dev.c"
	code=backing_ na_info     
 =ck_dev.c"
	code=d	
_.17.3"
	  >
  v2.6.17.3   6<
-v2.6k_dev.c"
	code=i_stgte     
)d="L8" class="line" name="6"L17">  67#include <
(&k_dev.c"
	code=inode     
-v2.6k_dev.c"
	code=i_wb_list     
, &k_dev.c"
	code=d	
-v2.6k_dev.c"
	code=wb     
.k_dev.c"
	code=b_dirty     
)_.17.3"
	  >
  v2.6.17.3  68#include <
(&k_dev.c"
	code=inode     
-v2.6k_dev.c"
	code=i_v2.6     
)_.17.3"
	  >
  v2.6.17.3  69#include <
(&k_dev.c"
	code=old     
-v2.6k_dev.c"
	code=wb     
.k_dev.c"
	code=list_u2.6     
)_.17.3"
	  >
  v2.6.17.3  70#include <
(&k_dev.c"
	code=d	
-v2.6k_dev.c"
	code=wb     
.k_dev.c"
	code=list_u2.6     
)_.17.3"
	  >
  v2.6.17.3  71#include <
  v2.6.17.3#i72#include <   37   47
(structck_dev.c"
	code=bline" nafs/        57   67
 =ck_dev.c"
	code=b na     
-v2.6k_dev.c"
	code=i_mapping     
_.17.3"
	  >
  v2.6.17.3   7<
  78#include <
-v2.6k_dev.c"
	code=nrptios     
 ==c0)d="L8" class="line" name="7"L19">  79#include <
  v2.6.17.3  80#include <  81#include <
()_.17.3"
	  >
  v2.6.17.3#i82#include <
(k_dev.c"
	code=mapping     
,c0)_.17.3"
	  >
  v2.6.17.3   38
  v2.6.17.3   48
(k_dev.c"
	code=kill_b na     
)_.17.3"
	  >
  v2.6.17.3   58   68
   78

(structck_dev.c"
	code=bline" nafs/        8<#include <  89#include <
 =ck_dev.c"
	code=b na     
-v2.6k_dev.c"
	code=i_mapping     
_.17.3" class="line" name="9"L20">  90#include <  91#include <
-v2.6k_dev.c"
	code=nrptios     
 ==c0)d="L8" class="line" name="9"L2/a>#i92#include <
  v2.6.17.3   39   49
()_.17.3"
	  >
  v2.6.17.3   59
()_    k>
   69
(k_dev.c"
	code=mapping     
,c0, -1)_.17.3"
	  >
  v2.6.17.3   79

   89#include <   9<#include <  100#include <
(k_dev.c"
	code=mapping     
)_.17.3"
	  >
  v2.6.17.3  101#include <
  v2.6.17.3  102#include <
(k_dev.c"
	code=invalidate_b na     
)_.17.3"
	  >
  v2.6.17.3  103#include <  104#include <
(structck_dev.c"
	code=bline" nafs/     
)d="L8" class="line" name="105L14">  10  106#include <
  107#include <
 lock_k_dev.c"
	code=PAGE_SIZE     
 ||ck_dev.c"
	code=size     
ffer_ 512 ||c!k_dev.c"
	code=is_power_of_2     
(k_dev.c"
	code=size     
))d="L8" class="line" name="10"L18">  108#include <#include <  110#include <
	ho size supported "y the dnafs/ *.c#L7" id="L7" class="line" name="1="L11">  111#include <
ffer_ k_dev.c"
	code=b na_logical_"line_size     
(k_dev.c"
	code=b na       112#include <
_.17.3" class="line" name="1="L13">  113#include <  114#include <  115#include <
 !=ck_dev.c"
	code=size     
) {d="L8" class="line" name="1="L16">  116#include <
(k_dev.c"
	code=b na       117#include <
 =ck_dev.c"
	code=size     
_.17.3" class="line" name="1="L18">  118#include <
-v2.6k_dev.c"
	code=i_blkbits     
 =ck_dev.c"
	code=blesize_bits     
(k_dev.c"
	code=size     
)_.17.3" class="line" name="1="L19">  119#include <
(k_dev.c"
	code=b na       120#include <
  v2.6.17.3  121#include <  122#include <
  v2.6.17.3  1
    124#include <
(k_dev.c"
	code=set_"linesize     
)_.17.3" class="line" name="1=5L14">  125#include <  126#include <
(structck_dev.c"
	code=super_bu2.6     
)d="L8" class="line" name="1p"L17">  127#include <  128#include <
(k_dev.c"
	code=sb     
))d="L8" class="line" name="1p"L19">  129#include <  130#include <  131#include <#i132#include <
 =ck_dev.c"
	code=size     
_.17.3" class="line" name="13L3">   31<
 =ck_dev.c"
	code=blesize_bits     
(k_dev.c"
	code=size     
)_.17.3" class="line" name="13"L14">  134#include <
_.17.3" class="line" name="135L14">  135#include <
  v2.6.17.3  136#include <
  v2.6.17.3  137#include <
(k_dev.c"
	code=sb_set_"linesize     
)_.17.3" class="line" name="13"L18">  138#include <  139#include <
(structck_dev.c"
	code=super_bu2.6     
)d="L8" class="line" name="14"L20">  140#include <  141#include <
 =ck_dev.c"
	code=b na_logical_"line_size     
(k_dev.c"
	code=sb     #i142#include <
ffer_ k_dev.c"
	code=minsize     
)d="L8" class="line" name="14L3">   314
f=ck_dev.c"
	code=minsize     
_.17.3" class="line" name="14"L14">  144#include <
(k_dev.c"
	code=sb     
)_.17.3" class="line" name="14"L15">  145#include <
  v2.6.17.3  146#include <
  v2.6.17.3  147#include <
(k_dev.c"
	code=sb_min_"linesize     
)_.17.3" class="line" name="14"L18">  148#include <  149#include <  150#include <
(structck_dev.c"
	code=inode     
 *k_dev.c"
	code=inode     
,ck_dev.c"
	code=sector_
 k_dev.c"
	code=i"line     
,d="L7" class="line" name="15"L21">  151#include <
)d="L8" class="line" name="15"L2/a>#i152#include <   315
(k_dev.c"
	code=inode     
)_.17.3" class="line" name="15L4">   415
_.17.3" class="line" name="15"L15">  1<
(k_dev.c"
	code=bh       156#include <  157#include <
  v2.6.17.3  158#include <  159#include <
.17.3" class="line" name="16"L20">  160#include <
(intck_dev.c"
	code=rw     
 *k_dev.c"
	code=iocb     
, const structck_dev.c"
	code=iovec     
 *k_dev.c"
	code=ioa     
,d="L7" class="line" name="16"L21">  161#include <
 k_dev.c"
	code=offse
, unsigned long k_dev.c"
	code=nearcgs     
)d="L8" class="line" name="16"L2/a>#i162#include <   316
 *k_dev.c"
	code=e" i     
 =ck_dev.c"
	code=iocb     
-v2.6k_dev.c"
	code=ki_e" p     
_.17.3" class="line" name="16L4">   416
 *k_dev.c"
	code=inode     
 =ck_dev.c"
	code=e" i     
-v2.6k_dev.c"
	code=f_mapping     
-v2.6k_dev.c"
	code=ho	
_.17.3" class="line" name="16"L15">  16   61<