Linux / Drivers / Mtd
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 274 files with 120,610 lines of code.
    • 32 very long files (53,008 lines of code)
    • 47 long files (33,323 lines of code)
    • 73 medium size files (22,731 lines of codeclsfd_ftr_w_mp_ins)
    • 54 small files (8,007 lines of code)
    • 68 very small files (3,541 lines of code)
43% | 27% | 18% | 6% | 2%
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
c44% | 27% | 18% | 6% | 2%
h0% | 20% | 20% | 20% | 37%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
nand54% | 24% | 14% | 4% | 2%
chips85% | 0% | 7% | 4% | 2%
ubi31% | 46% | 19% | 1% | 1%
devices35% | 23% | 30% | 8% | 1%
ROOT23% | 54% | 19% | 1% | 1%
spi-nor28% | 28% | 28% | 6% | 8%
maps0% | 25% | 31% | 30% | 12%
lpddr0% | 53% | 29% | 16% | 0%
parsers0% | 0% | 57% | 37% | 5%
hyperbus0% | 0% | 46% | 53% | 0%
Longest Files (Top 50)
File# lines# units
nand_base.c
in nand/raw
3886 150
brcmnand.c
in nand/raw/brcmnand
2447 88
onenand_base.c
in nand/onenand
2403 90
2162 57
2124 74
qcom_nandc.c
in nand/raw
2118 61
marvell_nand.c
in nand/raw
2109 66
2088 8
core.c
in spi-nor
2085 101
1978 57
nand-controller.c
in nand/raw/atmel
1954 58
nandsim.c
in nand/raw
1843 40
sunxi_nand.c
in nand/raw
1658 56
omap2.c
in nand/raw
1647 39
gpmi-nand.c
in nand/raw/gpmi-nand
1613 59
mtdcore.c
in root
1549 90
1501 51
st_spi_fsm.c
in devices
1466 42
docg3.c
in devices
1360 68
mxc_nand.c
in nand/raw
1345 65
mtk_nand.c
in nand/raw
1274 56
wl.c
in ubi
1224 33
diskonchip.c
in nand/raw
1193 40
fastmap.c
in ubi
1190 21
meson_nand.c
in nand/raw
1176 45
1138 30
mtdswap.c
in root
1130 39
1123 38
attach.c
in ubi
1118 19
1094 32
1007 16
core.c
in nand/spi
1005 54
tegra_nand.c
in nand/raw
994 27
denali.c
in nand/raw
968 51
sh_flctl.c
in nand/raw
959 36
mtdchar.c
in root
956 21
eba.c
in ubi
942 28
nand_bbt.c
in nand/raw
932 33
911 30
build.c
in ubi
899 23
sm_ftl.c
in root
876 34
s3c2410.c
in nand/raw
851 37
fsmc_nand.c
in nand/raw
845 29
fsl_ifc_nand.c
in nand/raw
823 23
cdev.c
in ubi
805 15
sfdp.c
in spi-nor
801 18
io.c
in ubi
789 21
onenand_samsung.c
in nand/onenand
763 29
ftl.c
in root
749 18
pmecc.c
in nand/raw/atmel
726 19
Files With Most Units (Top 50)
File# lines# units
nand_base.c
in nand/raw
3886 150
core.c
in spi-nor
2085 101
mtdcore.c
in root
1549 90
onenand_base.c
in nand/onenand
2403 90
brcmnand.c
in nand/raw/brcmnand
2447 88
2124 74
docg3.c
in devices
1360 68
marvell_nand.c
in nand/raw
2109 66
mxc_nand.c
in nand/raw
1345 65
qcom_nandc.c
in nand/raw
2118 61
gpmi-nand.c
in nand/raw/gpmi-nand
1613 59
nand-controller.c
in nand/raw/atmel
1954 58
1978 57
2162 57
sunxi_nand.c
in nand/raw
1658 56
mtk_nand.c
in nand/raw
1274 56
core.c
in nand/spi
1005 54
1501 51
denali.c
in nand/raw
968 51
meson_nand.c
in nand/raw
1176 45
st_spi_fsm.c
in devices
1466 42
nandsim.c
in nand/raw
1843 40
diskonchip.c
in nand/raw
1193 40
mtdswap.c
in root
1130 39
omap2.c
in nand/raw
1647 39
1123 38
s3c2410.c
in nand/raw
851 37
sh_flctl.c
in nand/raw
959 36
r852.c
in nand/raw
698 36
sm_ftl.c
in root
876 34
wl.c
in ubi
1224 33
nand_bbt.c
in nand/raw
932 33
1094 32
vf610_nfc.c
in nand/raw
659 31
911 30
1138 30
onenand_samsung.c
in nand/onenand
763 29
fsmc_nand.c
in nand/raw
845 29
eba.c
in ubi
942 28
hisi504_nand.c
in nand/raw
677 28
lpc32xx_slc.c
in nand/raw
675 28
mpc5121_nfc.c
in nand/raw
608 28
tegra_nand.c
in nand/raw
994 27
567 26
aspeed-smc.c
in spi-nor/controllers
605 26
430 24
lpc32xx_mlc.c
in nand/raw
626 24
build.c
in ubi
899 23
fsl_ifc_nand.c
in nand/raw
823 23
io.c
in ubi
789 21
Files With Long Lines (Top 15)

There are 15 files with lines longer than 120 characters. In total, there are 30 long lines.

File# lines# units# long lines
build.c
in ubi
899 23 8
1007 16 6
537 10 2
645 15 2
lart.c
in devices
393 11 2
567 26 1
misc.c
in ubi
99 8 1
2124 74 1
cfi_probe.c
in chips
321 8 1
1978 57 1
onenand_base.c
in nand/onenand
2403 90 1
nand_base.c
in nand/raw
3886 150 1
nandsim.c
in nand/raw
1843 40 1
diskonchip.c
in nand/raw
1193 40 1
core.c
in spi-nor
2085 101 1