don't transliterate lower bits of ->intent.open.flags to FMODE_...

->create() instances are much happier that way...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2011-06-25 19:15:54 -04:00
parent 554a8b9f54
commit 8a5e929dd2
7 changed files with 24 additions and 31 deletions

View File

@@ -174,7 +174,7 @@ v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode,
v9ses = v9fs_inode2v9ses(dir);
if (nd && nd->flags & LOOKUP_OPEN)
flags = nd->intent.open.flags - 1;
flags = nd->intent.open.flags;
else {
/*
* create call without LOOKUP_OPEN is due