Thus, we need to convert the mask to the number (by ffs()) when writing back this value to the resource in save_resource().