git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fat: drop negative dentry on rename() path
[pandora-kernel.git]
/
fs
/
fifo.c
diff --git
a/fs/fifo.c
b/fs/fifo.c
index
987bf94
..
f8f97b8
100644
(file)
--- a/
fs/fifo.c
+++ b/
fs/fifo.c
@@
-51,7
+51,7
@@
static int fifo_open(struct inode *inode, struct file *filp)
filp->f_mode &= (FMODE_READ | FMODE_WRITE);
switch (filp->f_mode) {
filp->f_mode &= (FMODE_READ | FMODE_WRITE);
switch (filp->f_mode) {
- case
1
:
+ case
FMODE_READ
:
/*
* O_RDONLY
* POSIX.1 says that O_NONBLOCK means return with the FIFO
/*
* O_RDONLY
* POSIX.1 says that O_NONBLOCK means return with the FIFO
@@
-76,7
+76,7
@@
static int fifo_open(struct inode *inode, struct file *filp)
}
break;
}
break;
- case
2
:
+ case
FMODE_WRITE
:
/*
* O_WRONLY
* POSIX.1 says that O_NONBLOCK means return -1 with
/*
* O_WRONLY
* POSIX.1 says that O_NONBLOCK means return -1 with
@@
-98,7
+98,7
@@
static int fifo_open(struct inode *inode, struct file *filp)
}
break;
}
break;
- case
3
:
+ case
FMODE_READ | FMODE_WRITE
:
/*
* O_RDWR
* POSIX.1 leaves this case "undefined" when O_NONBLOCK is set.
/*
* O_RDWR
* POSIX.1 leaves this case "undefined" when O_NONBLOCK is set.