Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: [PATCH] autofs4 doesn't expire | From | Jeremy Fitzhardinge <> | Date | Tue, 05 Aug 2003 17:03:23 -0700 |
| |
On Tue, 2003-08-05 at 16:49, Andrew Morton wrote: > Probably we should hold onto that ref because we play with the vfsmount > later on. So something like this?
We're of one mind.
> + if (vfs) { > + if (is_vfsmnt_tree_busy(vfs)) > + ret = 0; > + mntput(vfs); > + }
mntput will cheerfully ignore a NULL vfs, so I don't think the code needs this much mashing.
J
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |