WSL2-Linux-Kernel/fs/exofs
Boaz Harrosh d866d875f6 ore/exofs: Change the type of the devices array (API change)
In the pNFS obj-LD the device table at the layout level needs
to point to a device_cache node, where it is possible and likely
that many layouts will point to the same device-nodes.

In Exofs we have a more orderly structure where we have a single
array of devices that repeats twice for a round-robin view of the
device table

This patch moves to a model that can be used by the pNFS obj-LD
where struct ore_components holds an array of ore_dev-pointers.
(ore_dev is newly defined and contains a struct osd_dev *od
 member)

Each pointer in the array of pointers will point to a bigger
user-defined dev_struct. That can be accessed by use of the
container_of macro.

In Exofs an __alloc_dev_table() function allocates the
ore_dev-pointers array as well as an exofs_dev array, in one
allocation and does the addresses dance to set everything pointing
correctly. It still keeps the double allocation trick for the
inodes round-robin view of the table.

The device table is always allocated dynamically, also for the
single device case. So it is unconditionally freed at umount.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
2011-10-04 12:13:59 +02:00
..
BUGS exofs: Documentation 2009-03-31 19:44:38 +03:00
Kbuild ore: Make ore its own module 2011-08-06 19:36:19 -07:00
Kconfig ore: Make ore its own module 2011-08-06 19:36:19 -07:00
common.h Fix common misspellings 2011-03-31 11:26:23 -03:00
dir.c exofs: Trivial: fix some indentation and debug prints 2011-03-15 15:00:27 +02:00
exofs.h ore/exofs: Change the type of the devices array (API change) 2011-10-04 12:13:59 +02:00
file.c fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers 2011-07-20 20:47:59 -04:00
inode.c exofs: Rename struct ore_components comps => oc 2011-10-03 17:07:50 +02:00
namei.c make d_splice_alias(ERR_PTR(err), dentry) = ERR_PTR(err) 2011-07-20 01:44:26 -04:00
ore.c ore/exofs: Change the type of the devices array (API change) 2011-10-04 12:13:59 +02:00
super.c ore/exofs: Change the type of the devices array (API change) 2011-10-04 12:13:59 +02:00
symlink.c exofs: Remove IBM copyrights 2009-06-21 17:53:47 +03:00