mm: consolidate dax / non-dax checks for writeback
authorJeff Layton <jlayton@redhat.com>
Wed, 26 Jul 2017 14:21:11 +0000 (10:21 -0400)
committerJeff Layton <jlayton@redhat.com>
Sat, 29 Jul 2017 13:01:02 +0000 (09:01 -0400)
commit9326c9b20dd813248280cca1e1d1c05e939dae15
treeeb1084660a624ad6d0c56dd6b9bd19a5d16fba82
parent80aafd50b6a4fa6b6bba4b451b553d5d221f59ff
mm: consolidate dax / non-dax checks for writeback

We have this complex conditional copied to several places. Turn it into
a helper function.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
mm/filemap.c