Add data and page clone functions, for use in buffer dup