patch-2.3.99-pre3 linux/drivers/block/lvm.c
Next file: linux/drivers/block/md.c
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Thu Mar 23 08:13:35 2000
- Orig file:
v2.3.99-pre2/linux/drivers/block/lvm.c
- Orig date:
Sun Mar 19 18:35:30 2000
diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/block/lvm.c linux/drivers/block/lvm.c
@@ -2527,6 +2527,15 @@
*
* Is this the real thing?
*
+ * No, it's bollocks. md.c tries to do a bit different thing that might
+ * _somewhat_ work eons ago. Neither does any good these days. mount() couldn't
+ * care less for icache (it cares only for ->s_root->d_count and if we want
+ * loopback mounts even that will stop). BTW, with the form used here mount()
+ * would have to scan the _whole_ icache to detect the attempt - how on the
+ * Earth could it guess the i_ino of your dummy inode? Official line on the
+ * exclusion between mount()/swapon()/open()/etc. is Just Don't Do It(tm).
+ * If you can convince Linus that it's worth changing - fine, then you'll need
+ * to do blkdev_get()/blkdev_put(). Until then...
*/
struct inode *lvm_get_inode(int dev)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)