summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-08-29 18:23:25 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-08-29 18:23:25 +0000
commit996fd71dcffabd99aa19c71da4c55910c3708568 (patch)
tree511bf0665bdeba046f1eba49cc0245bad63f0d2c
parent27cbf92df98ec633cebbc8ee18b73fc9c535e28e (diff)
(diskfs_S_io_select): Don't check open modes or return EBADF.
-rw-r--r--libdiskfs/io-select.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libdiskfs/io-select.c b/libdiskfs/io-select.c
index 55d93194..5cbd4615 100644
--- a/libdiskfs/io-select.c
+++ b/libdiskfs/io-select.c
@@ -28,14 +28,6 @@ diskfs_S_io_select (struct protid *cred,
if (!cred)
return EOPNOTSUPP;
- mutex_lock (&cred->po->np->lock);
- if (((*type & SELECT_READ) && !(cred->po->openstat & O_READ))
- || ((*type & SELECT_WRITE) && !(cred->po->openstat & O_WRITE)))
- {
- mutex_unlock (&cred->po->np->lock);
- return EBADF;
- }
- mutex_unlock (&cred->po->np->lock);
*type &= ~SELECT_URG;
return 0;
}