mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] eliminate use of ->f_flags in block methods
store needed information in f_mode Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
aeb5d72706
commit
86d434dede
9 changed files with 26 additions and 22 deletions
|
|
@ -197,7 +197,7 @@ static int ide_gd_open(struct inode *inode, struct file *filp)
|
|||
* unreadable disk, so that we can get the format capacity
|
||||
* of the drive or begin the format - Sam
|
||||
*/
|
||||
if (ret && (filp->f_flags & O_NDELAY) == 0) {
|
||||
if (ret && (filp->f_mode & FMODE_NDELAY) == 0) {
|
||||
ret = -EIO;
|
||||
goto out_put_idkp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue