Skip to content

Commit 2ee99cb

Browse files
SukrutHerookarkawasaki
authored andcommitted
drbd: add missing kernel-doc for peer_device parameter
W=1 build warns that peer_device is undocumented in the bitmap I/O handlers. This parameter was introduced in commit 8164dd6 ("drbd: Add peer device parameter to whole-bitmap I/O handlers"), but the kernel-doc was not updated. Add the missing @peer_device entry. Signed-off-by: Sukrut Heroorkar <[email protected]>
1 parent 6f43942 commit 2ee99cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/block/drbd/drbd_bitmap.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@ static int bm_rw(struct drbd_device *device, const unsigned int flags, unsigned
12131213
/**
12141214
* drbd_bm_read() - Read the whole bitmap from its on disk location.
12151215
* @device: DRBD device.
1216+
* @peer_device: Peer device for which the bitmap read is performed.
12161217
*/
12171218
int drbd_bm_read(struct drbd_device *device,
12181219
struct drbd_peer_device *peer_device) __must_hold(local)
@@ -1224,6 +1225,7 @@ int drbd_bm_read(struct drbd_device *device,
12241225
/**
12251226
* drbd_bm_write() - Write the whole bitmap to its on disk location.
12261227
* @device: DRBD device.
1228+
* @peer_device: Peer device for which the bitmap write is performed.
12271229
*
12281230
* Will only write pages that have changed since last IO.
12291231
*/
@@ -1236,7 +1238,7 @@ int drbd_bm_write(struct drbd_device *device,
12361238
/**
12371239
* drbd_bm_write_all() - Write the whole bitmap to its on disk location.
12381240
* @device: DRBD device.
1239-
*
1241+
* @peer_device: Peer device for which the bitmap write is performed.
12401242
* Will write all pages.
12411243
*/
12421244
int drbd_bm_write_all(struct drbd_device *device,
@@ -1258,6 +1260,7 @@ int drbd_bm_write_lazy(struct drbd_device *device, unsigned upper_idx) __must_ho
12581260
/**
12591261
* drbd_bm_write_copy_pages() - Write the whole bitmap to its on disk location.
12601262
* @device: DRBD device.
1263+
* @peer_device: Peer device for which the bitmap write is performed.
12611264
*
12621265
* Will only write pages that have changed since last IO.
12631266
* In contrast to drbd_bm_write(), this will copy the bitmap pages
@@ -1275,6 +1278,7 @@ int drbd_bm_write_copy_pages(struct drbd_device *device,
12751278
/**
12761279
* drbd_bm_write_hinted() - Write bitmap pages with "hint" marks, if they have changed.
12771280
* @device: DRBD device.
1281+
* @peer_device: Peer device for which the bitmap write is performed.
12781282
*/
12791283
int drbd_bm_write_hinted(struct drbd_device *device) __must_hold(local)
12801284
{

0 commit comments

Comments
 (0)