Linux / Drivers / Scsi
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 827 files with 746,469 lines of code.
    • 210 very long files (567,440 lines of code)
    • 133 long files (96,608 lines of code)
    • 165 medium size files (54,007 lines of codeclsfd_ftr_w_mp_ins)
    • 123 small files (18,326 lines of code)
    • 196 very small files (10,088 lines of code)
76% | 12% | 7% | 2% | 1%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
c83% | 10% | 4% | 1% | <1%
h39% | 25% | 20% | 8% | 6%
reg100% | 0% | 0% | 0% | 0%
y92% | 0% | 0% | 7% | 0%
pl0% | 100% | 0% | 0% | 0%
l0% | 79% | 0% | 20% | 0%
S0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT74% | 14% | 8% | 1% | <1%
lpfc94% | 2% | 1% | <1% | <1%
qla2xxx88% | 7% | 2% | <1% | <1%
bfa71% | 19% | 7% | <1% | <1%
mpt3sas88% | 2% | 6% | 1% | <1%
aic7xxx76% | 11% | 7% | 2% | 1%
qla4xxx76% | 15% | 5% | 2% | <1%
megaraid91% | 3% | 1% | 2% | <1%
elx59% | 30% | 3% | 3% | 2%
ufs64% | 9% | 16% | 5% | 4%
pm800184% | 14% | 0% | 0% | 1%
hisi_sas95% | 4% | 0% | 0% | 0%
smartpqi91% | 0% | 7% | 0% | <1%
be2iscsi89% | 7% | 0% | 3% | <1%
mpi3mr85% | 4% | 6% | 2% | <1%
aacraid71% | 15% | 12% | 0% | <1%
isci57% | 16% | 12% | 10% | 3%
esas2r67% | 25% | 3% | 1% | 1%
csiostor55% | 23% | 16% | 2% | 2%
sym53c8xx_271% | 6% | 16% | 5% | <1%
libfc77% | 9% | 8% | 0% | 4%
ibmvscsi87% | 11% | 0% | 0% | <1%
cxgbi90% | 8% | 0% | 0% | <1%
qedi74% | 9% | 3% | 8% | 4%
bnx2fc65% | 25% | 6% | 1% | <1%
qedf64% | 10% | 17% | 7% | 1%
bnx2i82% | 0% | 14% | 1% | 1%
arcmsr79% | 14% | 6% | 0% | 0%
fcoe72% | 26% | 0% | 0% | 1%
cxlflash57% | 25% | 8% | 4% | 4%
arm56% | 0% | 32% | 7% | 3%
fnic32% | 23% | 17% | 15% | 10%
ibmvscsi_tgt81% | 0% | 15% | 2% | 0%
aic94xx28% | 58% | 10% | 0% | 1%
snic27% | 18% | 27% | 12% | 15%
libsas34% | 37% | 18% | 8% | <1%
mvsas32% | 42% | 19% | 3% | 1%
pcmcia40% | 22% | 15% | 17% | 3%
device_handler0% | 74% | 17% | 8% | 0%
dpt0% | 0% | 53% | 35% | 11%
Longest Files (Top 50)
File# lines# units
lpfc_sli.c
in lpfc
14892 23
10461 20
mpt3sas_scsih.c
in mpt3sas
9358 14
smartpqi_init.c
in smartpqi
8204 289
advansys.c
in root
8040 121
ql4_os.c
in qla4xxx
7978 159
lpfc_els.c
in lpfc
7839 8
hpsa.c
in root
7685 259
aic79xx_core.c
in aic7xxx
7496 2
qla_init.c
in qla2xxx
7271 56
ipr.c
in root
7147 242
6617 193
ufshcd.c
in ufs
6572 291
qla_os.c
in qla2xxx
6525 30
6275 71
mpt3sas_base.c
in mpt3sas
6043 10
qla_target.c
in qla2xxx
5793 102
aic7xxx_core.c
in aic7xxx
5513 2
qla_mbx.c
in qla2xxx
5359 14
5134 89
5124 6
4949 11
bfa_svc.c
in bfa
4917 4
be_main.c
in be2iscsi
4847 81
bfa_ioc.c
in bfa
4842 5
4820 11
4776 2
4707 15
lpfc_hw4.h
in lpfc
4580 -
lpfc_bsg.c
in lpfc
4525 5
4481 75
ibmvfc.c
in ibmvscsi
4463 160
ips.c
in root
4419 8
pm8001_hwi.c
in pm8001
4264 59
pm80xx_hwi.c
in pm8001
4259 54
arcmsr_hba.c
in arcmsr
4245 125
qla_def.h
in qla2xxx
4148 15
hisi_sas_v3_hw.c
in hisi_sas
4092 136
4006 96
sli4.c
in elx/libefc_sli
3984 4
reg
aic79xx.reg
in aic7xxx
3975 -
st.c
in root
3960 76
3851 30
qla_isr.c
in qla2xxx
3648 10
qla_nx.c
in qla2xxx
3607 17
lpfc_hw.h
in lpfc
3599 -
pmcraid.c
in root
3489 119
sli4.h
in elx/libefc_sli
3431 -
ql4_nx.c
in qla4xxx
3311 58
qla_gs.c
in qla2xxx
3278 35
Files With Most Units (Top 50)
File# lines# units
ufshcd.c
in ufs
6572 291
smartpqi_init.c
in smartpqi
8204 289
hpsa.c
in root
7685 259
ipr.c
in root
7147 242
6617 193
ibmvfc.c
in ibmvscsi
4463 160
ql4_os.c
in qla4xxx
7978 159
hisi_sas_v3_hw.c
in hisi_sas
4092 136
arcmsr_hba.c
in arcmsr
4245 125
advansys.c
in root
8040 121
pmcraid.c
in root
3489 119
myrb.c
in root
2956 107
qla_target.c
in qla2xxx
5793 102
myrs.c
in root
2682 99
4006 96
dc395x.c
in root
3164 95
main.c
in cxlflash
2473 92
5134 89
2357 88
host.c
in isci
1801 87
hisi_sas_main.c
in hisi_sas
2294 85
ufshpb.c
in ufs
2027 83
ibmvscsi_tgt.c
in ibmvscsi_tgt
2818 81
be_main.c
in be2iscsi
4847 81
scsi_lib.c
in root
2113 79
sd.c
in root
2738 77
mpi3mr_os.c
in mpi3mr
3164 76
st.c
in root
3960 76
3008 76
mvumi.c
in root
2157 75
aachba.c
in aacraid
3200 75
4481 75
mpi3mr_fw.c
in mpi3mr
3232 73
libiscsi.c
in root
2746 73
bnx2fc_fcoe.c
in bnx2fc
2206 72
esp_scsi.c
in root
2157 72
6275 71
hisi_sas_v2_hw.c
in hisi_sas
3071 71
hptiop.c
in root
1372 70
initio.c
in root
2096 69
request.c
in isci
2377 68
port.c
in isci
1114 65
ibmvscsi.c
in ibmvscsi
1617 64
mv_sas.c
in mvsas
1695 64
libcxgbi.c
in cxgbi
2566 64
fas216.c
in arm
1847 64
sym_hipd.c
in sym53c8xx_2
3197 64
2305 63
tcm_qla2xxx.c
in qla2xxx
1468 62
fcoe.c
in fcoe
1809 61
Files With Long Lines (Top 50)

There are 59 files with lines longer than 120 characters. In total, there are 212 long lines.

File# lines# units# long lines
BusLogic.c
in root
2379 43 34
linit.c
in aacraid
1555 48 16
3w-xxxx.c
in root
1698 46 16
53c700.c
in root
1504 7 11
3w-9xxx.c
in root
1699 43 10
3w-sas.c
in root
1325 38 10
mpt3sas_scsih.c
in mpt3sas
9358 14 9
dpt_i2o.c
in root
2734 61 9
smartpqi_init.c
in smartpqi
8204 289 7
6275 71 6
pm80xx_hwi.c
in pm8001
4259 54 5
195 - 4
advansys.c
in root
8040 121 4
ql4_isr.c
in qla4xxx
1162 20 4
pm8001_hwi.c
in pm8001
4264 59 3
qla_target.c
in qla2xxx
5793 102 3
aacraid.h
in aacraid
1993 9 3
bfad.c
in bfa
1377 2 3
nsp_cs.c
in pcmcia
1174 32 3
mpt3sas_base.c
in mpt3sas
6043 10 2
hpsa.c
in root
7685 259 2
685 - 2
aha152x.c
in root
2301 57 2
mpi30_transport.h
in mpi3mr/mpi
449 - 2
mpi3mr_os.c
in mpi3mr
3164 76 2
libiscsi.c
in root
2746 73 2
qla_isr.c
in qla2xxx
3648 10 2
commsup.c
in aacraid
1694 45 2
arcmsr_hba.c
in arcmsr
4245 125 2
ql4_mbx.c
in qla4xxx
1844 49 2
hisi_sas_v3_hw.c
in hisi_sas
4092 136 2
dc395x.c
in root
3164 95 1
1631 - 1
mpt3sas_ctl.c
in mpt3sas
2883 3 1
1847 - 1
megaraid.c
in root
2720 5 1
1253 33 1
53c700.h
in root
408 - 1
ufshcd.c
in ufs
6572 291 1
mac_scsi.c
in root
431 10 1
NCR5380.c
in root
1357 28 1
qla_nx.c
in qla2xxx
3607 17 1
aha1542.c
in root
843 30 1
sg.c
in root
2181 18 1
147 1 1
esas2r_log.c
in esas2r
98 4 1
3w-9xxx.h
in root
582 - 1
qedf_fip.c
in qedf
234 4 1
qedf_io.c
in qedf
1950 33 1
226 6 1