android_kernel_motorola_sm6225/drivers/infiniband/hw/ipath
David Howells 454e2398be [PATCH] VFS: Permit filesystem to override root dentry on mount
Extend the get_sb() filesystem operation to take an extra argument that
permits the VFS to pass in the target vfsmount that defines the mountpoint.

The filesystem is then required to manually set the superblock and root dentry
pointers.  For most filesystems, this should be done with simple_set_mnt()
which will set the superblock pointer and then set the root dentry to the
superblock's s_root (as per the old default behaviour).

The get_sb() op now returns an integer as there's now no need to return the
superblock pointer.

This patch permits a superblock to be implicitly shared amongst several mount
points, such as can be done with NFS to avoid potential inode aliasing.  In
such a case, simple_set_mnt() would not be called, and instead the mnt_root
and mnt_sb would be set directly.

The patch also makes the following changes:

 (*) the get_sb_*() convenience functions in the core kernel now take a vfsmount
     pointer argument and return an integer, so most filesystems have to change
     very little.

 (*) If one of the convenience function is not used, then get_sb() should
     normally call simple_set_mnt() to instantiate the vfsmount. This will
     always return 0, and so can be tail-called from get_sb().

 (*) generic_shutdown_super() now calls shrink_dcache_sb() to clean up the
     dcache upon superblock destruction rather than shrink_dcache_anon().

     This is required because the superblock may now have multiple trees that
     aren't actually bound to s_root, but that still need to be cleaned up. The
     currently called functions assume that the whole tree is rooted at s_root,
     and that anonymous dentries are not the roots of trees which results in
     dentries being left unculled.

     However, with the way NFS superblock sharing are currently set to be
     implemented, these assumptions are violated: the root of the filesystem is
     simply a dummy dentry and inode (the real inode for '/' may well be
     inaccessible), and all the vfsmounts are rooted on anonymous[*] dentries
     with child trees.

     [*] Anonymous until discovered from another tree.

 (*) The documentation has been adjusted, including the additional bit of
     changing ext2_* into foo_* in the documentation.

[akpm@osdl.org: convert ipath_fs, do other stuff]
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Nathan Scott <nathans@sgi.com>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-23 07:42:45 -07:00
..
ipath_common.h IB/ipath: core driver header files 2006-03-31 13:14:18 -08:00
ipath_cq.c IB/ipath: misc infiniband code, part 1 2006-03-31 13:14:20 -08:00
ipath_debug.h IB/ipath: tidy up white space in a few files 2006-05-01 12:14:23 -07:00
ipath_diag.c IB/ipath: fix race with exposing reset file 2006-05-01 12:14:11 -07:00
ipath_driver.c IB/ipath: fix NULL dereference during cleanup 2006-05-23 13:27:06 -07:00
ipath_eeprom.c IB/ipath: enable GPIO interrupt on HT-460 2006-05-23 13:29:34 -07:00
ipath_file_ops.c IB/ipath: enable PE800 receive interrupts on user ports 2006-05-23 13:29:35 -07:00
ipath_fs.c [PATCH] VFS: Permit filesystem to override root dentry on mount 2006-06-23 07:42:45 -07:00
ipath_ht400.c IB/ipath: enable GPIO interrupt on HT-460 2006-05-23 13:29:34 -07:00
ipath_init_chip.c IB/ipath: enable GPIO interrupt on HT-460 2006-05-23 13:29:34 -07:00
ipath_intr.c IB/ipath: fix label name in interrupt handler 2006-05-01 12:14:22 -07:00
ipath_kernel.h IB/ipath: enable GPIO interrupt on HT-460 2006-05-23 13:29:34 -07:00
ipath_keys.c IB/ipath: fix spinlock recursion bug 2006-05-23 13:27:06 -07:00
ipath_layer.c IB/ipath: fix null deref during rdma ops 2006-05-23 13:29:35 -07:00
ipath_layer.h IB/ipath: layering interfaces used by higher-level driver code 2006-03-31 13:14:20 -08:00
ipath_mad.c IB/ipath: Add client reregister event generation 2006-06-17 20:37:37 -07:00
ipath_mr.c IB/ipath: misc infiniband code, part 1 2006-03-31 13:14:20 -08:00
ipath_pe800.c IB/ipath: enable GPIO interrupt on HT-460 2006-05-23 13:29:34 -07:00
ipath_qp.c IB/ipath: deref correct pointer when using kernel SMA 2006-05-23 13:29:35 -07:00
ipath_rc.c IB/ipath: replace uses of LIST_POISON 2006-05-23 13:27:06 -07:00
ipath_registers.h IB/ipath: tidy up white space in a few files 2006-05-01 12:14:23 -07:00
ipath_ruc.c IB/ipath: replace uses of LIST_POISON 2006-05-23 13:27:06 -07:00
ipath_srq.c IB/ipath: misc infiniband code, part 1 2006-03-31 13:14:20 -08:00
ipath_stats.c IB/ipath: misc driver support code 2006-03-31 13:14:19 -08:00
ipath_sysfs.c IB/ipath: fix race with exposing reset file 2006-05-01 12:14:11 -07:00
ipath_uc.c IB/ipath: infiniband UC and UD protocol support 2006-03-31 13:14:20 -08:00
ipath_ud.c IB/ipath: tidy up white space in a few files 2006-05-01 12:14:23 -07:00
ipath_user_pages.c IB/ipath: support for userspace apps using core driver 2006-03-31 13:14:19 -08:00
ipath_verbs.c IB/ipath: register as IB device owner 2006-05-23 13:29:35 -07:00
ipath_verbs.h IB/ipath: simplify IB timer usage 2006-05-01 12:14:21 -07:00
ipath_verbs_mcast.c IB/ipath: infiniband verbs support 2006-03-31 13:14:21 -08:00
ipath_wc_x86_64.c IB/ipath: misc driver support code 2006-03-31 13:14:19 -08:00
ips_common.h IB/ipath: improve sparse annotation 2006-05-01 12:14:21 -07:00
Kconfig IB/ipath: kbuild infrastructure 2006-03-31 13:14:21 -08:00
Makefile IB/ipath: kbuild infrastructure 2006-03-31 13:14:21 -08:00
verbs_debug.h IB/ipath: infiniband header files 2006-03-31 13:14:20 -08:00