diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-25 19:15:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:43:52 -0400 |
commit | 8a5e929dd2e05ab4d3d89f58c5e8fca596af8f3a (patch) | |
tree | 8cbed05fcd99d24e881e5ea12d8a954865e31085 /drivers | |
parent | 554a8b9f54cd7ca2b89f5dc227df08be082fae0d (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/pohmelfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pohmelfs/dir.c b/drivers/staging/pohmelfs/dir.c index 9732a9666cc4..7598e77672a5 100644 --- a/drivers/staging/pohmelfs/dir.c +++ b/drivers/staging/pohmelfs/dir.c | |||
@@ -512,7 +512,7 @@ struct dentry *pohmelfs_lookup(struct inode *dir, struct dentry *dentry, struct | |||
512 | int err, lock_type = POHMELFS_READ_LOCK, need_lock = 1; | 512 | int err, lock_type = POHMELFS_READ_LOCK, need_lock = 1; |
513 | struct qstr str = dentry->d_name; | 513 | struct qstr str = dentry->d_name; |
514 | 514 | ||
515 | if ((nd->intent.open.flags & O_ACCMODE) > 1) | 515 | if ((nd->intent.open.flags & O_ACCMODE) != O_RDONLY) |
516 | lock_type = POHMELFS_WRITE_LOCK; | 516 | lock_type = POHMELFS_WRITE_LOCK; |
517 | 517 | ||
518 | if (test_bit(NETFS_INODE_OWNED, &parent->state)) { | 518 | if (test_bit(NETFS_INODE_OWNED, &parent->state)) { |