[PATCH] eliminate use of ->f_flags in block methods

store needed information in f_mode

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2007-08-26 19:50:05 -04:00
parent aeb5d72706
commit 86d434dede
9 changed files with 26 additions and 22 deletions

View File

@@ -640,7 +640,7 @@ static int sd_open(struct inode *inode, struct file *filp)
*/
retval = -ENOMEDIUM;
if (sdev->removable && !sdkp->media_present &&
!(filp->f_flags & O_NDELAY))
!(filp->f_mode & FMODE_NDELAY))
goto error_out;
/*