Apply mask to buffer pages