[PATCH 1/1] UBUNTU: ubuntu: overlayfs -- fix missmerge of vfs_open changes
Andy Whitcroft
apw at canonical.com
Thu Feb 14 11:29:11 UTC 2013
BugLink: http://bugs.launchpad.net/bugs/1122094
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
fs/open.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/open.c b/fs/open.c
index 7be104a..a500c82 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -831,8 +831,12 @@ struct file *nameidata_to_filp(struct nameidata *nd)
nd->intent.open.file = NULL;
} else {
struct file *res;
+ struct inode *inode = nd->path.dentry->d_inode;
- res = vfs_open(&nd->path, filp, cred);
+ if (inode->i_op->open)
+ return inode->i_op->open(nd->path.dentry, filp, cred);
+
+ res = do_dentry_open(&nd->path, filp, NULL, cred);
if (!IS_ERR(res)) {
int error;
--
1.7.10.4
More information about the kernel-team
mailing list