Skip to contentSkip to conversation

btrfs: remove comment for argument seed of btrfs_find_device

PATCH In review Su Yue 3 participants 3 messages Apr 25, 2021 – Apr 28, 2021 Btrfs file system

lore
Share & tools
lore

Su Yue

author
#0 lore raw

PATCH 1/1 btrfs: remove comment for argument seed of btrfs_find_device

Commit b2598edf8b36 ("btrfs: remove unused argument seed from btrfs_find_device") removed the argument seed from btrfs_find_device but forgot the comment, so remove it.

---
 fs/btrfs/volumes.c | 2 --
 1 file changed, 2 deletions(-)
fs/btrfs/volumes.c +0 -2
index 77cdb75acc15..9ee17b2ff621 100644
@@ -6669,8 +6669,6 @@ blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio,
  *
  * If devid and uuid are both specified, the match must be exact, otherwise
  * only devid is used.
- *
- * If @seed is true, traverse through the seed devices.
  */
 struct btrfs_device *btrfs_find_device(struct btrfs_fs_devices *fs_devices,
 				       u64 devid, u8 *uuid, u8 *fsid)
Signature · 1 line
2.30.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Su Yue

Commit b2598edf8b36 ("btrfs: remove unused argument seed from btrfs_find_device") removed the argument seed from btrfs_find_device but forgot the comment, so remove it.

My bad. Thanks for the fix.

Quoted 19 lines
---
  fs/btrfs/volumes.c | 2 --
  1 file changed, 2 deletions(-)
fs/btrfs/volumes.c +0 -2
index 77cdb75acc15..9ee17b2ff621 100644
@@ -6669,8 +6669,6 @@ blk_status_t btrfs_map_bio(struct btrfs_fs_info *fs_info, struct bio *bio,
   *
   * If devid and uuid are both specified, the match must be exact, otherwise
   * only devid is used.
- *
- * If @seed is true, traverse through the seed devices.
   */
  struct btrfs_device *btrfs_find_device(struct btrfs_fs_devices *fs_devices,
  				       u64 devid, u8 *uuid, u8 *fsid)