Tang Junhui
bb22cafd75
bcache: add a comment in journal bucket reading
...
Journal bucket is a circular buffer, the bucket
can be like YYYNNNYY, which means the first valid journal in
the 7th bucket, and the latest valid journal in third bucket, in
this case, if we do not try we the zero index first, We
may get a valid journal in the 7th bucket, then we call
find_next_bit(bitmap,ca->sb.njournal_buckets, l + 1) to get the
first invalid bucket after the 7th bucket, because all these
buckets is valid, so no bit 1 in bitmap, thus find_next_bit()
function would return with ca->sb.njournal_buckets (8). So, after
that, bcache only read journal in 7th and 8the bucket,
the first to the third buckets are lost.
So, it is important to let developer know that, we need to try
the zero index at first in the hash-search, and avoid any breaks
in future's code modification.
[ML: Fixed whitespace & formatting & file permissions]
Signed-off-by: Tang Junhui <tang.junhui@zte.com.cn>
Signed-off-by: Michael Lyle <mlyle@lyle.org>
Reviewed-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-11-24 16:22:55 -07:00
..
accessibility
acpi
ACPI fix for v4.15-rc1
2017-11-17 14:51:24 -08:00
amba
A couple of dma-mapping updates:
2017-11-14 16:54:12 -08:00
android
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
ata
Merge branch 'for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
2017-11-15 14:11:41 -08:00
atm
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-11-15 11:56:19 -08:00
auxdisplay
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
base
Two power management fixes for v4.15-rc1
2017-11-17 14:49:25 -08:00
bcma
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-11-15 11:56:19 -08:00
block
null_blk: fix dev->badblocks leak
2017-11-22 08:43:11 -07:00
bluetooth
bus
ARM: SoC driver updates for v4.15
2017-11-16 16:05:01 -08:00
cdrom
Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block
2017-11-14 15:32:19 -08:00
char
Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 11:54:55 -08:00
clk
We have two changes to the core framework this time around. The first being a
2017-11-17 20:04:24 -08:00
clocksource
First batch of KVM changes for 4.15
2017-11-16 13:00:24 -08:00
connector
cpufreq
Power management updates for v4.15-rc1
2017-11-13 19:43:50 -08:00
cpuidle
powerpc updates for 4.15
2017-11-16 12:47:46 -08:00
crypto
powerpc updates for 4.15
2017-11-16 12:47:46 -08:00
dax
libnvdimm for 4.15
2017-11-17 09:51:57 -08:00
dca
devfreq
Merge branches 'pm-devfreq' and 'pm-tools'
2017-11-13 01:41:39 +01:00
dio
dma
dmaengine updates for 4.15-rc1
2017-11-14 16:49:31 -08:00
dma-buf
Tracing updates for 4.15:
2017-11-17 14:58:01 -08:00
edac
Modules updates for v4.15
2017-11-15 13:46:33 -08:00
eisa
extcon
USB/PHY patches for 4.15-rc1
2017-11-13 21:14:07 -08:00
firewire
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
firmware
remoteproc updates for v4.15
2017-11-17 20:14:10 -08:00
fmc
fpga
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
fsi
gpio
This is the bulk of pin control changes for the v4.15
2017-11-16 10:57:11 -08:00
gpu
amdgpu DC display code for Vega.
2017-11-17 14:34:42 -08:00
hid
Modules updates for v4.15
2017-11-15 13:46:33 -08:00
hsi
HSI changes for the v4.15 series
2017-11-15 13:35:43 -08:00
hv
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
hwmon
hwmon: (w83793) Remove duplicate NULL check
2017-11-16 01:03:19 -08:00
hwspinlock
hwspinlock update for v4.15
2017-11-17 20:16:20 -08:00
hwtracing
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
i2c
Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 11:54:55 -08:00
ide
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
2017-11-17 10:56:56 -08:00
idle
Merge branch 'pm-cpuidle'
2017-11-13 01:34:14 +01:00
iio
A couple of configfs cleanups:
2017-11-14 14:44:04 -08:00
infiniband
Driver core patches for 4.15-rc1
2017-11-16 08:55:30 -08:00
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2017-11-14 18:07:18 -08:00
iommu
IOMMU Updates for Linux v4.15
2017-11-14 16:43:27 -08:00
ipack
irqchip
ARM: SoC platform updates for 4.15
2017-11-16 14:05:12 -08:00
isdn
isdn: hisax: Fix pnp_irq's error checking for setup_teles3
2017-11-16 22:31:16 +09:00
leds
LED updates for 4.15rc1
2017-11-14 18:09:31 -08:00
lightnvm
Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block
2017-11-14 15:32:19 -08:00
macintosh
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
mailbox
Change to POLL api and fixes for FlexRM and OMAP driver
2017-11-15 13:39:18 -08:00
mcb
md
bcache: add a comment in journal bucket reading
2017-11-24 16:22:55 -07:00
media
AFS development
2017-11-16 11:41:22 -08:00
memory
ARM: SoC driver updates for v4.15
2017-11-16 16:05:01 -08:00
memstick
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
message
Modules updates for v4.15
2017-11-15 13:46:33 -08:00
mfd
- New Drivers
2017-11-16 09:15:57 -08:00
misc
lkdtm: include WARN format string
2017-11-17 16:10:01 -08:00
mmc
MMC core:
2017-11-13 10:17:35 -08:00
mtd
Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 11:54:55 -08:00
mux
net
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-11-17 20:18:37 -08:00
nfc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2017-11-15 11:56:19 -08:00
ntb
nubus
m68k updates for 4.15
2017-11-13 12:10:24 -08:00
nvdimm
libnvdimm for 4.15
2017-11-17 09:51:57 -08:00
nvme
nvme-fc: don't use bit masks for set/test_bit() numbers
2017-11-24 10:12:33 -07:00
nvmem
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
of
ARM: SoC driver updates for v4.15
2017-11-16 16:05:01 -08:00
opp
oprofile
parisc
parport
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
pci
pci-v4.15-changes
2017-11-15 15:01:28 -08:00
pcmcia
drivers/pcmcia/sa1111_badge4.c: avoid unused function warning
2017-11-17 16:10:04 -08:00
perf
arm64 updates for 4.15
2017-11-15 10:56:56 -08:00
phy
USB/PHY patches for 4.15-rc1
2017-11-13 21:14:07 -08:00
pinctrl
This is the bulk of pin control changes for the v4.15
2017-11-16 10:57:11 -08:00
platform
clean up x86 platform driver default values
2017-11-18 12:09:51 -08:00
pnp
power
power supply and reset changes for the v4.15 series
2017-11-15 13:37:15 -08:00
powercap
pps
ps3
ptp
xen: features and fixes for v4.15-rc1
2017-11-16 13:06:27 -08:00
pwm
rapidio
Merge branch 'akpm' (patches from Andrew)
2017-11-17 16:56:17 -08:00
ras
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
regulator
- New Drivers
2017-11-16 09:15:57 -08:00
remoteproc
remoteproc updates for v4.15
2017-11-17 20:14:10 -08:00
reset
ARM: SoC driver updates for v4.15
2017-11-16 16:05:01 -08:00
rpmsg
rpmsg updates for v4.15
2017-11-17 20:12:08 -08:00
rtc
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 17:56:58 -08:00
s390
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
2017-11-17 14:23:52 -08:00
sbus
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
2017-11-17 20:21:44 -08:00
scsi
Merge branch 'work.get_user_pages_fast' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 12:38:51 -08:00
sfi
sh
A couple of dma-mapping updates:
2017-11-14 16:54:12 -08:00
sn
soc
ARM: SoC driver updates for v4.15
2017-11-16 16:05:01 -08:00
spi
spmi
ssb
staging
Merge branch 'work.get_user_pages_fast' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 12:38:51 -08:00
target
A couple of configfs cleanups:
2017-11-14 14:44:04 -08:00
tc
tee
thermal
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
2017-11-17 14:31:27 -08:00
thunderbolt
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
tty
Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 11:54:55 -08:00
uio
usb
sound updates for 4.15-rc1
2017-11-14 18:01:46 -08:00
uwb
vfio
VFIO Updates for Linux v4.15
2017-11-14 16:47:47 -08:00
vhost
Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 12:08:18 -08:00
video
Merge branch 'work.get_user_pages_fast' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 12:38:51 -08:00
virt
virtio
virtio_balloon: fix deadlock on OOM
2017-11-14 23:57:38 +02:00
vlynq
vme
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
w1
Char/Misc patches for 4.15-rc1
2017-11-16 09:10:59 -08:00
watchdog
drivers/watchdog: make use of devm_register_reboot_notifier()
2017-11-17 16:10:04 -08:00
xen
Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2017-11-17 12:08:18 -08:00
zorro
Kconfig
Merge branches 'pm-cpufreq-sched' and 'pm-opp'
2017-11-13 01:40:52 +01:00
Makefile
Merge branches 'pm-cpufreq-sched' and 'pm-opp'
2017-11-13 01:40:52 +01:00