• Ryan Ding's avatar
    ocfs2: code clean up for direct io · f1f973ff
    Ryan Ding authored
    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: default avatarRyan Ding <ryan.ding@oracle.com>
    Reviewed-by: default avatarJunxiao 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f1f973ff
ocfs2_trace.h 75.6 KB