The present application discloses a request
processing method and apparatus, a device, and a non-transitory readable storage medium. When modifying reflink data, in the present application, first reading
continuous data including currently modified data from a disk to a cache, then modifying corresponding reflink data in the cache, but not modifying other data in the
continuous data, and then allocating a new address for the modified new reflink data in the disk, and mapping the cache address of the new reflink data to the new address, so as to store the new reflink data in the new address, and at the same time reducing the reference count of the corresponding reflink data in the reflink shared tree by one. In this solution, there is only one read operation and one write operation for the disk, so the problem of
write amplification is reduced; at the same time, this solution introduces a pre-read mechanism, and subsequent access operations to other data in the
continuous data can directly hit the cache, thus improving the efficiency of subsequent operations. The request
processing apparatus, device, and non-transitory readable storage medium provided in the present application also have the above-mentioned technical effect.