From: Dave Hansen Date: Fri, 15 Feb 2008 22:37:57 +0000 (-0800) Subject: [PATCH] r/o bind mounts: get callers of vfs_mknod/create/mkdir() X-Git-Tag: v2.6.26-rc1~1134^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=463c3197263bd26ac59a00d2484990e17e35c50e;p=pandora-kernel.git [PATCH] r/o bind mounts: get callers of vfs_mknod/create/mkdir() This takes care of all of the direct callers of vfs_mknod(). Since a few of these cases also handle normal file creation as well, this also covers some calls to vfs_create(). So that we don't have to make three mnt_want/drop_write() calls inside of the switch statement, we move some of its logic outside of the switch and into a helper function suggested by Christoph. This also encapsulates a fix for mknod(S_IFREG) that Miklos found. [AV: merged mkdir handling, added missing nfsd pieces] Acked-by: Al Viro Signed-off-by: Christoph Hellwig Signed-off-by: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Al Viro --- Reading git-diff-tree failed