summaryrefslogtreecommitdiff
path: root/Documentation/filesystems/autofs4.txt
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-10-13 15:52:22 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:18:16 +0200
commitef16cc5909c907586f4eba5455e183fd319637c8 (patch)
tree8c85bca785379b19f215b210a89717e7cd51c4c8 /Documentation/filesystems/autofs4.txt
parent4d885f90e3784df77945101d8ec32dc798a49862 (diff)
autofs4: d_manage() should return -EISDIR when appropriate in rcu-walk mode.
If rcu-walk mode we don't *have* to return -EISDIR for non-mount-traps as we will simply drop into REF-walk and handling DCACHE_NEED_AUTOMOUNT dentrys the slow way. But it is better if we do when possible. In 'oz_mode', use the same condition as ref-walk: if not a mountpoint, then it must be -EISDIR. In regular mode there are most tests needed. Most of them can be performed without taking any spinlocks. If we find a directory that isn't obviously empty, and isn't mounted on, we need to call 'simple_empty()' which does take a spinlock. If this turned out to hurt performance, some other approach could be found to signal when a directory is known to be empty. Signed-off-by: NeilBrown <neilb@suse.de> Reviewed-by: Ian Kent <raven@themaw.net> Tested-by: Ian Kent <raven@themaw.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems/autofs4.txt')
0 files changed, 0 insertions, 0 deletions