From: NeilBrown Date: Thu, 11 Mar 2010 00:20:17 +0000 (+1100) Subject: NFS: ensure bdi_unregister is called on mount failure. X-Git-Tag: v2.6.34-rc2~22^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfbc0683af235106e7dabe92003870b82ad6f0ba;p=pandora-kernel.git NFS: ensure bdi_unregister is called on mount failure. bdi_unregister is called by nfs_put_super which is only called by generic_shutdown_super if ->s_root is not NULL. So if we error out in a circumstance where we called nfs_bdi_register (i.e. server != NULL) but have not set s_root, then we need to call bdi_unregister explicitly in nfs_get_sb and various other *_get_sb() functions. Signed-off-by: NeilBrown Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed