]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ocfs2: code clean up for direct io
authorRyan Ding <ryan.ding@oracle.com>
Wed, 8 Nov 2017 23:01:25 +0000 (15:01 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 15 Nov 2017 06:21:00 +0000 (01:21 -0500)
commit11fc5176778a82fb5bb0100413496e125862e649
tree8d70b8c949249c3c24499576aa3be76af0b8b9e0
parente86e75b87ae5bd007a74827e54c7e678d46b244a
ocfs2: code clean up for direct io

orabug: 26545553
backport: upstream f1f973ffce96a47c2b3f142e91eccef5bf22f699
# slight confict on all files.

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>
Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Reviewed-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
fs/ocfs2/file.c
fs/ocfs2/ocfs2_trace.h