aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-26 19:50:05 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 07:47:08 -0400
commit86d434dede14108dd917b25af0f29c0cb28b8d18 (patch)
treef69305e5213ac9eab854b8c85a918fd71c106e06 /drivers/scsi
parentaeb5d727062a0238a2f96c9c380fbd2be4640c6f (diff)
downloadkernel_samsung_aries-86d434dede14108dd917b25af0f29c0cb28b8d18.zip
kernel_samsung_aries-86d434dede14108dd917b25af0f29c0cb28b8d18.tar.gz
kernel_samsung_aries-86d434dede14108dd917b25af0f29c0cb28b8d18.tar.bz2
[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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 7c4d2e6..202c1ed 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -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;
/*