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
..
bcache
bcache: add a comment in journal bucket reading
2017-11-24 16:22:55 -07:00
persistent-data
- A few conversions from atomic_t to ref_count_t
2017-11-14 15:50:56 -08:00
dm-bio-prison-v1.c
dm-bio-prison-v1.h
dm-bio-prison-v2.c
dm-bio-prison-v2.h
dm-bio-record.h
block: replace bi_bdev with a gendisk pointer and partitions index
2017-08-23 12:49:55 -06:00
dm-bufio.c
- A DM multipath stable@ fix to silence an annoying error message that
2017-11-17 09:40:12 -08:00
dm-bufio.h
dm integrity: optimize writing dm-bufio buffers that are partially changed
2017-08-28 11:47:17 -04:00
dm-builtin.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
dm-cache-background-tracker.c
dm cache background tracker: limit amount of background work that may be issued at once
2017-11-10 15:45:03 -05:00
dm-cache-background-tracker.h
dm-cache-block-types.h
dm-cache-metadata.c
dm cache: convert dm_cache_metadata.ref_count from atomic_t to refcount_t
2017-10-24 15:09:51 -04:00
dm-cache-metadata.h
dm-cache-policy-internal.h
dm-cache-policy-smq.c
dm cache policy smq: allocate cache blocks in order
2017-11-10 15:45:05 -05:00
dm-cache-policy.c
dm-cache-policy.h
dm-cache-target.c
dm cache: lift common migration preparation code to alloc_migration()
2017-11-10 15:45:07 -05:00
dm-core.h
dm: allocate struct mapped_device with kvzalloc
2017-11-10 15:44:55 -05:00
dm-crypt.c
dm crypt: allow unaligned bv_offset
2017-11-10 15:44:58 -05:00
dm-delay.c
md: Convert timers to use timer_setup()
2017-11-14 20:11:57 -07:00
dm-era-target.c
dm: do not set 'discards_supported' in targets that do not need it
2017-11-16 16:33:54 -05:00
dm-exception-store.c
dm-exception-store.h
dm-flakey.c
- Some request-based DM core and DM multipath fixes and cleanups
2017-09-14 13:43:16 -07:00
dm-integrity.c
md: Convert timers to use timer_setup()
2017-11-14 20:11:57 -07:00
dm-io.c
block: replace bi_bdev with a gendisk pointer and partitions index
2017-08-23 12:49:55 -06:00
dm-ioctl.c
dm ioctl: fix alignment of event number in the device list
2017-09-25 11:18:29 -04:00
dm-kcopyd.c
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE()
2017-10-25 11:01:08 +02:00
dm-linear.c
- Some request-based DM core and DM multipath fixes and cleanups
2017-09-14 13:43:16 -07:00
dm-log-userspace-base.c
dm-log-userspace-transfer.c
dm-log-userspace-transfer.h
dm-log-writes.c
dm log writes: add support for DAX
2017-11-10 15:44:51 -05:00
dm-log.c
dm-mpath.c
- A DM multipath stable@ fix to silence an annoying error message that
2017-11-17 09:40:12 -08:00
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-queue-length.c
dm-raid.c
- A DM multipath stable@ fix to silence an annoying error message that
2017-11-17 09:40:12 -08:00
dm-raid1.c
md: Convert timers to use timer_setup()
2017-11-14 20:11:57 -07:00
dm-region-hash.c
dm-round-robin.c
dm-rq.c
block: remove QUEUE_FLAG_STACKABLE
2017-10-05 15:22:59 -06:00
dm-rq.h
dm rq: do not update rq partially in each ending bio
2017-08-28 10:23:28 -04:00
dm-service-time.c
dm-snap-persistent.c
dm-snap-transient.c
dm-snap.c
block: replace bi_bdev with a gendisk pointer and partitions index
2017-08-23 12:49:55 -06:00
dm-stats.c
Merge branch 'linus' into locking/core, to resolve conflicts
2017-11-07 10:32:44 +01:00
dm-stats.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
dm-stripe.c
- Some request-based DM core and DM multipath fixes and cleanups
2017-09-14 13:43:16 -07:00
dm-switch.c
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE()
2017-10-25 11:01:08 +02:00
dm-sysfs.c
dm-table.c
- A DM multipath stable@ fix to silence an annoying error message that
2017-11-17 09:40:12 -08:00
dm-target.c
dm-thin-metadata.c
dm-thin-metadata.h
dm-thin.c
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE()
2017-10-25 11:01:08 +02:00
dm-uevent.c
dm-uevent.h
dm-verity-fec.c
dm-verity-fec.h
dm-verity-target.c
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
2017-11-14 10:52:09 -08:00
dm-verity.h
dm: move dm-verity to generic async completion
2017-11-03 22:11:20 +08:00
dm-zero.c
dm-zoned-metadata.c
block: replace bi_bdev with a gendisk pointer and partitions index
2017-08-23 12:49:55 -06:00
dm-zoned-reclaim.c
dm-zoned-target.c
dm zoned: ignore last smaller runt zone
2017-11-10 15:44:53 -05:00
dm-zoned.h
dm.c
- A few conversions from atomic_t to ref_count_t
2017-11-14 15:50:56 -08:00
dm.h
dm: convert dm_dev_internal.count from atomic_t to refcount_t
2017-10-24 15:09:51 -04:00
Kconfig
md-cluster: update document for raid10
2017-11-01 21:32:25 -07:00
Makefile
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00
md-bitmap.c
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00
md-bitmap.h
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00
md-cluster.c
md-cluster: update document for raid10
2017-11-01 21:32:25 -07:00
md-cluster.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
md-faulty.c
md: rename some drivers/md/ files to have an "md-" prefix
2017-10-16 19:06:36 -07:00
md-linear.c
md: rename some drivers/md/ files to have an "md-" prefix
2017-10-16 19:06:36 -07:00
md-linear.h
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00
md-multipath.c
md: remove redundant variable q
2017-11-01 21:32:24 -07:00
md-multipath.h
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00
md.c
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
2017-11-17 10:56:56 -08:00
md.h
md: use lockdep_assert_held
2017-11-01 21:32:22 -07:00
raid0.c
md: remove special meaning of ->quiesce(.., 2)
2017-11-01 21:32:20 -07:00
raid0.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
raid1-10.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
raid1.c
raid1: remove obsolete code in raid1_write_request
2017-11-01 21:32:24 -07:00
raid1.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
raid5-cache.c
md: use lockdep_assert_held
2017-11-01 21:32:22 -07:00
raid5-log.h
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00
raid5-ppl.c
raid5-ppl: check recovery_offset when performing ppl recovery
2017-10-16 19:06:34 -07:00
raid5.c
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00
raid5.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
raid10.c
md-cluster: Use a small window for raid10 resync
2017-11-01 21:32:23 -07:00
raid10.h
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
2017-11-14 16:07:26 -08:00