autofs: use inode permission method for write access
authorIan Kent <raven@themaw.net>
Fri, 8 Jul 2022 01:43:01 +0000 (09:43 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:42 +0000 (17:31 -0700)
commitf71381fcdc3ab615f55278d435a9f35542dc9e63
tree643456b5dd2f667795666be4f50ca0032f7045b8
parent55656016daa7155d95471627c1b1438d488f011b
autofs: use inode permission method for write access

Patch series "autofs: misc patches".

This series contains several patches that resulted mostly from comments
made by Al Viro (quite a long time ago now).

This patch (of 5):

Eliminate some code duplication from mkdir/rmdir/symlink/unlink methods by
using the inode operation .permission().

Link: https://lkml.kernel.org/r/165724445154.30914.10970894936827635879.stgit@donald.themaw.net
Link: https://lkml.kernel.org/r/165724458096.30914.13499431569758625806.stgit@donald.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/autofs/root.c