HDFS-5595: correct calculation of default mask.