commit | 592e254502041f953e84d091eae2c68cba04c10b | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Fri Nov 03 12:21:21 2017 +0100 |
committer | Dan Williams <dan.j.williams@intel.com> | Fri Nov 03 06:25:51 2017 -0700 |
tree | 536241d5f7df82fbf45bb37a464fb0e93939df2b | |
parent | 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f [diff] |
mm: Handle 0 flags in _calc_vm_trans() macro _calc_vm_trans() does not handle the situation when some of the passed flags are 0 (which can happen if these VM flags do not make sense for the architecture). Improve the _calc_vm_trans() macro to return 0 in such situation. Since all passed flags are constant, this does not add any runtime overhead. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>