diff options
| author | Coly Li <[email protected]> | 2019-06-28 19:59:51 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-06-28 07:39:17 -0600 |
| commit | a231f07a5fe30a522b402011c5190cb936641a66 (patch) | |
| tree | ee29a6ab832e636dc2c5fa23af822f1f5294d0b0 /lib/mpi/mpi-cmp.c | |
| parent | 2464b693148e5d5ca42b6064bb40c1a275ea61cd (diff) | |
bcache: set largest seq to ja->seq[bucket_index] in journal_read_bucket()
In journal_read_bucket() when setting ja->seq[bucket_index], there might
be potential case that a later non-maximum overwrites a better sequence
number to ja->seq[bucket_index]. This patch adds a check to make sure
that ja->seq[bucket_index] will be only set a new value if it is bigger
then current value.
Signed-off-by: Coly Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions