mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
don't open-code file_inode()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e5517c2a5a
commit
450630975d
18 changed files with 40 additions and 46 deletions
|
|
@ -52,7 +52,7 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
|
|||
arg |= O_NONBLOCK;
|
||||
|
||||
/* Pipe packetized mode is controlled by O_DIRECT flag */
|
||||
if (!S_ISFIFO(filp->f_inode->i_mode) && (arg & O_DIRECT)) {
|
||||
if (!S_ISFIFO(inode->i_mode) && (arg & O_DIRECT)) {
|
||||
if (!filp->f_mapping || !filp->f_mapping->a_ops ||
|
||||
!filp->f_mapping->a_ops->direct_IO)
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue