]> git.baikalelectronics.ru Git - kernel.git/commit
raid1: use an int as the return value of raise_barrier()
authorHou Tao <houtao1@huawei.com>
Tue, 2 Jul 2019 14:35:48 +0000 (22:35 +0800)
committerSong Liu <songliubraving@fb.com>
Wed, 7 Aug 2019 17:25:02 +0000 (10:25 -0700)
commit27e5a7de0fe6cccace8fd5826dfad9ae7b892d14
treeedaccec92cd9d7816f75bf6237c74ce180824371
parentdd6d77bfb5a49569a8edd31278429e96c5faa715
raid1: use an int as the return value of raise_barrier()

Using a sector_t as the return value is misleading, because
raise_barrier() only return 0 or -EINTR.

Also add comments for the return values of raise_barrier().

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid1.c