From: Ian Kent Date: Fri, 14 Dec 2012 02:23:23 +0000 (+0800) Subject: autofs4 - dont clear DCACHE_NEED_AUTOMOUNT on rootless mount X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~25^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f55fb0c24386cee8b78f60d60186716bd0909493;p=pandora-kernel.git autofs4 - dont clear DCACHE_NEED_AUTOMOUNT on rootless mount The DCACHE_NEED_AUTOMOUNT flag is cleared on mount and set on expire for autofs rootless multi-mount dentrys to prevent unnecessary calls to ->d_automount(). Since DCACHE_MANAGE_TRANSIT is always set on autofs dentrys ->d_managed() is always called so the check can be done in ->d_manage() without the need to change the flag. This still avoids unnecessary calls to ->d_automount(), adds negligible overhead and eliminates a seriously ugly check in the expire code. Signed-off-by: Ian Kent Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed