Mining stocks are getting hammered as surging oil prices and inflation worries weigh on commodity values and hopes for earnings and global economic growth.