ext4: allow unlocked direct IO when pages are cached
authorJan Kara <jack@suse.cz>
Fri, 30 Sep 2016 05:55:32 +0000 (01:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Sep 2016 05:55:32 +0000 (01:55 -0400)
commit4b0524aae0082272737c97d2b160d55d6e8f0b2b
treebcf0c22447beb12238736a2b61066978a81f8004
parent9a200d075e5d05be1fcad4547a0f8aee4e2f9a04
ext4: allow unlocked direct IO when pages are cached

Currently we do not allow unlocked (meaning without inode_lock) direct
IO when the file has any pages cached. This check is not needed anymore
as we keep inode lock until ext4_direct_IO_write() and thus can happily
writeback and evict any pages conflicting with current direct IO write.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/file.c