OSDN Git Service

md/bitmap: don't set max_write_behind if there is no write mostly device
authorGuoqing Jiang <guoqing.jiang@linux.dev>
Sun, 17 Oct 2021 13:50:17 +0000 (21:50 +0800)
committerSong Liu <songliubraving@fb.com>
Tue, 2 Nov 2021 18:41:44 +0000 (11:41 -0700)
commit8c13ab115b577bd09097b9d77916732e97e31b7b
tree34475a71526cbdc89d16b7c630723dbcf3f50e6e
parente2daec488c57069a4a431d5b752f50294c4bf273
md/bitmap: don't set max_write_behind if there is no write mostly device

We shouldn't set it since write behind IO should only happen to write
mostly device.

Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md-bitmap.c