hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/block/drbd/drbd_actlog.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 drbd_actlog.c
34
....@@ -7,19 +8,6 @@
78 Copyright (C) 2003-2008, Philipp Reisner <philipp.reisner@linbit.com>.
89 Copyright (C) 2003-2008, Lars Ellenberg <lars.ellenberg@linbit.com>.
910
10
- drbd is free software; you can redistribute it and/or modify
11
- it under the terms of the GNU General Public License as published by
12
- the Free Software Foundation; either version 2, or (at your option)
13
- any later version.
14
-
15
- drbd is distributed in the hope that it will be useful,
16
- but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- GNU General Public License for more details.
19
-
20
- You should have received a copy of the GNU General Public License
21
- along with drbd; see the file COPYING. If not, write to
22
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
2311
2412 */
2513
....@@ -877,7 +865,7 @@
877865 if (!get_ldev(device))
878866 return 0; /* no disk, no metadata, no bitmap to manipulate bits in */
879867
880
- nr_sectors = drbd_get_capacity(device->this_bdev);
868
+ nr_sectors = get_capacity(device->vdisk);
881869 esector = sector + (size >> 9) - 1;
882870
883871 if (!expect(sector < nr_sectors))