]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: code clean up for direct io
authorRyan Ding <ryan.ding@oracle.com>
Tue, 9 Feb 2016 23:11:41 +0000 (10:11 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Feb 2016 23:11:41 +0000 (10:11 +1100)
commita2bdfa42c82a3abfb292df821deb3d0f52c89726
tree51f12661e27b6834146fd4564b8e0d5c9c2dec41
parent8e1fbb488a181d7a2c9774c19fa3cb473b402b59
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. :)

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>
fs/ocfs2/file.c
fs/ocfs2/ocfs2_trace.h