From: Dave Hansen Date: Sun, 1 Oct 2006 06:29:02 +0000 (-0700) Subject: [PATCH] r/o bind mount prepwork: move open_namei()'s vfs_create() X-Git-Tag: v2.6.19-rc1~530 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aab520e2f6c80160cabd187a8d0292d1cec8ff68;p=pandora-kernel.git [PATCH] r/o bind mount prepwork: move open_namei()'s vfs_create() The code around vfs_create() in open_namei() is getting a bit too complex. Right now, there is at least the reference count on the dentry, and the i_mutex to worry about. Soon, we'll also have mnt_writecount. So, break the vfs_create() call out of open_namei(), and into a helper function. This duplicates the call to may_open(), but that isn't such a bad thing since the arguments (acc_mode and flag) were being heavily massaged anyway. Signed-off-by: Dave Hansen Acked-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed