Commit 38f520a
committed
md/md-bitmap: cleanup bitmap_ops->startwrite()
bitmap_startwrite() always return 0, and the caller doesn't check return
value as well, hence change the method to void.
Also rename startwrite/endwrite to start_write/end_write, which is more in
line with the usual naming convention.
Link: https://lore.kernel.org/linux-raid/20250524061320.370630-4-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Xiao Ni <xni@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>1 parent b886475 commit 38f520a
3 files changed
Lines changed: 15 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | | - | |
1686 | | - | |
| 1685 | + | |
| 1686 | + | |
1687 | 1687 | | |
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
1691 | | - | |
| 1691 | + | |
1692 | 1692 | | |
1693 | 1693 | | |
1694 | 1694 | | |
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
1701 | | - | |
| 1701 | + | |
1702 | 1702 | | |
1703 | 1703 | | |
1704 | 1704 | | |
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
1738 | 1737 | | |
1739 | 1738 | | |
1740 | | - | |
1741 | | - | |
| 1739 | + | |
| 1740 | + | |
1742 | 1741 | | |
1743 | 1742 | | |
1744 | 1743 | | |
| |||
3013 | 3012 | | |
3014 | 3013 | | |
3015 | 3014 | | |
3016 | | - | |
3017 | | - | |
| 3015 | + | |
| 3016 | + | |
3018 | 3017 | | |
3019 | 3018 | | |
3020 | 3019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | | - | |
86 | | - | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8799 | 8799 | | |
8800 | 8800 | | |
8801 | 8801 | | |
8802 | | - | |
8803 | | - | |
| 8802 | + | |
| 8803 | + | |
8804 | 8804 | | |
8805 | 8805 | | |
8806 | 8806 | | |
8807 | 8807 | | |
8808 | | - | |
8809 | | - | |
| 8808 | + | |
| 8809 | + | |
8810 | 8810 | | |
8811 | 8811 | | |
8812 | 8812 | | |
| |||
0 commit comments