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:
@@ -512,7 +512,7 @@ struct dentry *pohmelfs_lookup(struct inode *dir, struct dentry *dentry, struct
|
||||
int err, lock_type = POHMELFS_READ_LOCK, need_lock = 1;
|
||||
struct qstr str = dentry->d_name;
|
||||
|
||||
if ((nd->intent.open.flags & O_ACCMODE) > 1)
|
||||
if ((nd->intent.open.flags & O_ACCMODE) != O_RDONLY)
|
||||
lock_type = POHMELFS_WRITE_LOCK;
|
||||
|
||||
if (test_bit(NETFS_INODE_OWNED, &parent->state)) {
|
||||
|
||||
Reference in New Issue
Block a user