]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] namespace.c: cleanup in mark_mounts_for_expiry()
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 8 Jul 2005 00:57:24 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:51 +0000 (18:23 -0700)
commita4d70278610e6bebe44a7b59a469fe7391387da6
tree936ff611c40a3e1e3027f548e31ef312ca104fab
parent1ce88cf466f7b6078b14d67d186a3d7c19dd5609
[PATCH] namespace.c: cleanup in mark_mounts_for_expiry()

This patch simplifies mark_mounts_for_expiry() by using detach_mnt() instead
of duplicating everything it does.

It should be an equivalent transformation except for righting the dput/mntput
order.

Al Viro said: "Looks sane".

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namespace.c