[PATCH] sanitize the interface of graft_tree().
authorRam Pai <linuxram@us.ibm.com>
Mon, 7 Nov 2005 22:16:29 +0000 (17:16 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 8 Nov 2005 02:18:10 +0000 (18:18 -0800)
commit5b83d2c5c0afcf5a3517cf00d9ceb41b8345e01b
treeae92239c963b2d3cb12e2a561913451a77752d55
parentb58fed8b1959d6b9e4c951a54adc8960e1401b18
[PATCH] sanitize the interface of graft_tree().

Old semantics: graft_tree() grabs a reference on the vfsmount before
returning success.

New one: graft_tree() leaves that to caller.

All the callers of graft_tree() immediately dropped that reference
anyway.  Changing the interface takes care of this unnecessary overhead.

Idea proposed by Al Viro.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namespace.c