All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] factor __btrfs_open_devices()
@ 2017-11-09 15:45 Anand Jain
  2017-11-09 15:45 ` [PATCH 1/4] btrfs: set fs_devices->seed directly Anand Jain
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Anand Jain @ 2017-11-09 15:45 UTC (permalink / raw)
  To: linux-btrfs

This is in preparation to help bring the missing device back to the
alloc list dynamically. As of now if we run 'btrfs dev scan </dev/missing>'
on a mounted FS, nothing happens, there is no code which handles this
condition. So the idea is to fix it by running through the device open
process for the reappeared missing device.

So this patch separates device open steps into a separate function so that
it can be called for a device, instead of for all the devices in the
dev_list. As this function is in the critical mount section, and to show
the src code changes as clearly as possible, I have created 4 no-functional
changes patches, which can be merged together if needed.

Anand Jain (4):
  btrfs: set fs_devices->seed directly
  btrfs: let variable required be declared inside the loop
  btrfs: move check for device generation to the last
  btrfs: factor __btrfs_open_devices() to create btrfs_open_one_device()

 fs/btrfs/volumes.c | 125 +++++++++++++++++++++++++++++------------------------
 1 file changed, 69 insertions(+), 56 deletions(-)

-- 
2.13.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-11-29 16:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-09 15:45 [PATCH 0/4] factor __btrfs_open_devices() Anand Jain
2017-11-09 15:45 ` [PATCH 1/4] btrfs: set fs_devices->seed directly Anand Jain
2017-11-09 15:45 ` [PATCH 2/4] btrfs: let variable required be declared inside the loop Anand Jain
2017-11-09 15:53   ` Nikolay Borisov
2017-11-15 17:01     ` David Sterba
2017-11-09 15:45 ` [PATCH 3/4] btrfs: move check for device generation to the last Anand Jain
2017-11-09 15:45 ` [PATCH 4/4] btrfs: factor __btrfs_open_devices() to create btrfs_open_one_device() Anand Jain
2017-11-27  6:47   ` Lakshmipathi.G
2017-11-27 11:47     ` Anand Jain
2017-11-29 16:02       ` Lakshmipathi.G
2017-11-27 14:00     ` [PATCH] btrfs: ignore return from btrfs_open_one_device() Anand Jain
2017-11-15 17:03 ` [PATCH 0/4] factor __btrfs_open_devices() David Sterba
2017-11-16  4:08   ` Anand Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.