Skip to contentSkip to conversation

btrfs: update comment for fs_devices::seed_list in btrfs_rm_device

PATCH In review Su Yue 4 participants 7 messages Aug 18, 2021 – Aug 23, 2021 Btrfs file system

lore
Share & tools
lore

Su Yue

author
#0 lore raw

PATCH 1/1 btrfs: update comment for fs_devices::seed_list in btrfs_rm_device

Update it since commit 944d3f9fac61 ("btrfs: switch seed device to list api") did conversion from fs_devices::seed to fs_devices::seed_list.

---
 fs/btrfs/volumes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/volumes.c +1 -1
index 70f94b75f25a..fcc2fede9ffc 100644
@@ -2203,7 +2203,7 @@ int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path,
 	/*
 	 * In normal cases the cur_devices == fs_devices. But in case
 	 * of deleting a seed device, the cur_devices should point to
-	 * its own fs_devices listed under the fs_devices->seed.
+	 * its own fs_devices listed under the fs_devices->seed_list.
 	 */
 	cur_devices = device->fs_devices;
 	mutex_lock(&fs_devices->device_list_mutex);
Signature · 1 line
2.30.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Su Yue

Update it since commit 944d3f9fac61 ("btrfs: switch seed device to list api") did conversion from fs_devices::seed to fs_devices::seed_list.

Quoted 18 lines
---
  fs/btrfs/volumes.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/volumes.c +1 -1
index 70f94b75f25a..fcc2fede9ffc 100644
@@ -2203,7 +2203,7 @@ int btrfs_rm_device(struct btrfs_fs_info *fs_info, const char *device_path,
  	/*
  	 * In normal cases the cur_devices == fs_devices. But in case
  	 * of deleting a seed device, the cur_devices should point to
-	 * its own fs_devices listed under the fs_devices->seed.
+	 * its own fs_devices listed under the fs_devices->seed_list.
  	 */
  	cur_devices = device->fs_devices;
  	mutex_lock(&fs_devices->device_list_mutex);
#2 lore raw
Quoted 9 lines · Anand Jain
Quoted 4 lines · Su Yue

Update it since commit 944d3f9fac61 ("btrfs: switch seed device to list api") did conversion from fs_devices::seed to fs_devices::seed_list.

Ah. No. I have remove my RB...

Quoted 5 lines
Quoted 5 lines

---
  fs/btrfs/volumes.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines

fs/btrfs/volumes.c int btrfs_rm_device(struct btrfs_fs_info · line 2207

Quoted 11 lines
fs/btrfs/volumes.c +1 -1
index 70f94b75f25a..fcc2fede9ffc 100644
@@ -2203,7 +2203,7 @@ int btrfs_rm_device(struct btrfs_fs_info 
 *fs_info, const char *device_path,
       /*
        * In normal cases the cur_devices == fs_devices. But in case
        * of deleting a seed device, the cur_devices should point to
-     * its own fs_devices listed under the fs_devices->seed.
+     * its own fs_devices listed under the fs_devices->seed_list.

fs_devices->seed is correct.

222 struct btrfs_fs_devices {
::
257 struct btrfs_fs_devices *seed;

Thanks, Anand

Quoted 5 lines
Quoted 4 lines
fs/btrfs/volumes.c +0 -0
        */
       cur_devices = device->fs_devices;

      mutex_lock(&fs_devices->device_list_mutex);

#3 lore raw
Quoted 35 lines · Anand Jain
Quoted 10 lines · Anand Jain
Quoted 5 lines · Su Yue

Update it since commit 944d3f9fac61 ("btrfs: switch seed device to list api") did conversion from fs_devices::seed to fs_devices::seed_list.

 Ah. No. I have remove my RB...

Quoted 5 lines
Quoted 5 lines

---
  fs/btrfs/volumes.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines

fs/btrfs/volumes.c int btrfs_rm_device(struct btrfs_fs_info · line 2207

Quoted 11 lines
fs/btrfs/volumes.c +1 -1
index 70f94b75f25a..fcc2fede9ffc 100644
@@ -2203,7 +2203,7 @@ int btrfs_rm_device(struct btrfs_fs_info
 *fs_info, const char *device_path,
       /*
        * In normal cases the cur_devices == fs_devices. But in case
        * of deleting a seed device, the cur_devices should point to
-     * its own fs_devices listed under the fs_devices->seed.
+     * its own fs_devices listed under the fs_devices->seed_list.

fs_devices->seed is correct.

Quoted 3 lines

222 struct btrfs_fs_devices {
::
257         struct btrfs_fs_devices *seed;

You are clearly looking at the wrong tree since seed got removed exactly in the cited patch above.

Quoted 10 lines

Thanks, Anand

Quoted 5 lines
Quoted 4 lines
fs/btrfs/volumes.c +0 -0
        */
       cur_devices = device->fs_devices;

      mutex_lock(&fs_devices->device_list_mutex);

#4 lore raw
Quoted 38 lines · Nikolay Borisov
Quoted 35 lines · Anand Jain
Quoted 10 lines · Anand Jain
Quoted 5 lines · Su Yue

Update it since commit 944d3f9fac61 ("btrfs: switch seed device to list api") did conversion from fs_devices::seed to fs_devices::seed_list.

 Ah. No. I have remove my RB...

Quoted 5 lines
Quoted 5 lines
---
   fs/btrfs/volumes.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines

fs/btrfs/volumes.c int btrfs_rm_device(struct btrfs_fs_info · line 2207

Quoted 11 lines
fs/btrfs/volumes.c +1 -1
index 70f94b75f25a..fcc2fede9ffc 100644
@@ -2203,7 +2203,7 @@ int btrfs_rm_device(struct btrfs_fs_info
 *fs_info, const char *device_path,
       /*
        * In normal cases the cur_devices == fs_devices. But in case
        * of deleting a seed device, the cur_devices should point to
-     * its own fs_devices listed under the fs_devices->seed.
+     * its own fs_devices listed under the fs_devices->seed_list.

fs_devices->seed is correct.

Quoted 6 lines
Quoted 3 lines

222 struct btrfs_fs_devices {
::
257         struct btrfs_fs_devices *seed;

You are clearly looking at the wrong tree since seed got removed exactly in the cited patch above.

Yep, I notice a little late.

Quoted 10 lines
Quoted 10 lines

Thanks, Anand

Quoted 5 lines
Quoted 4 lines
fs/btrfs/volumes.c +0 -0
        */
       cur_devices = device->fs_devices;

      mutex_lock(&fs_devices->device_list_mutex);

#5 lore raw
In reply to Anand Jain
Quoted 7 lines · Anand Jain
Quoted 4 lines · Anand Jain
Quoted 3 lines · Su Yue

Update it since commit 944d3f9fac61 ("btrfs: switch seed device to list api") did conversion from fs_devices::seed to fs_devices::seed_list.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

 Ah. No. I have remove my RB...

My rb is ok. I was looking at a 5.4 stable branch by mistake. I didn't realize. It is embarrassing. Sorry for the noise.

Thanks, Anand