Metadata from a file system in a data storage environment is obtained. The obtained metadata from the file system is indicative of one or more properties of one or more data blocks storable in the data storage environment. One or more data optimizations performed in a data protection operation for the data storage environment with respect to the one or more data blocks are controlled based on at least a portion of the metadata obtained from the file system.