diff options
author | Ryan Ding <ryan.ding@oracle.com> | 2016-03-25 14:21:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-25 16:37:42 -0700 |
commit | f1f973ffce96a47c2b3f142e91eccef5bf22f699 (patch) | |
tree | 3c2563b6165ca21918186e176c95921e28979f65 /fs/ocfs2/aops.c | |
parent | c15471f79506830f80eca0e7fe09b8213953ab5f (diff) | |
download | linux-stable-f1f973ffce96a47c2b3f142e91eccef5bf22f699.tar.gz linux-stable-f1f973ffce96a47c2b3f142e91eccef5bf22f699.tar.bz2 linux-stable-f1f973ffce96a47c2b3f142e91eccef5bf22f699.zip |
ocfs2: code clean up for direct io
Clean up ocfs2_file_write_iter & ocfs2_prepare_inode_for_write:
* remove append dio check: it will be checked in ocfs2_direct_IO()
* remove file hole check: file hole is supported for now
* remove inline data check: it will be checked in ocfs2_direct_IO()
* remove the full_coherence check when append dio: we will get the
inode_lock in ocfs2_dio_get_block, there is no need to fall back to
buffer io to ensure the coherence semantics.
Now the drop dio procedure is gone. :)
[akpm@linux-foundation.org: remove unused label]
Signed-off-by: Ryan Ding <ryan.ding@oracle.com>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/aops.c')
0 files changed, 0 insertions, 0 deletions