diff options
| author | Andrew Morton <akpm@zip.com.au> | 2002-07-04 08:31:05 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-04 08:31:05 -0700 |
| commit | 6ef5d4bb07e33bf1fb1cd7ea85c6553c888d9bce (patch) | |
| tree | 3341626f89109b8f232964e04f207bd60e78b3e0 /mm/filemap.c | |
| parent | b5b6fa5267d4e0da8b2f46904cec4d4f11c45d2e (diff) | |
[PATCH] check for O_DIRECT capability in open(), not write()
For O_DIRECT opens we're currently checking that the fs supports
O_DIRECT at write(2)-time.
This is a forward-port of Andrea's patch which moves the check to
open() time. Seems more sensible.
Diffstat (limited to 'mm/filemap.c')
| -rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 86ea3c15e6e8..17b9167e6a15 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1121,8 +1121,6 @@ static ssize_t generic_file_direct_IO(int rw, struct file * filp, char * buf, si retval = -EINVAL; if ((offset & blocksize_mask) || (count & blocksize_mask)) goto out_free; - if (!mapping->a_ops->direct_IO) - goto out_free; /* * Flush to disk exclusively the _data_, metadata must remain |
