| CPC G06F 16/188 (2019.01) [G06F 16/178 (2019.01)] | 15 Claims |

|
1. A method of data processing, the method being applied at a filesystem of a computer system in userspace, the method comprising:
sending, by the computer system, a data calling request of an application end to a kernel module to process the data calling request, wherein the filesystem in the userspace includes the kernel module and a userspace process;
in response to the kernel module, forwarding the data calling request to the userspace process;
in response to the forwarding the data calling request, obtaining, by the userspace process, first modification time information of data corresponding to the data calling request from a first metadata information stored locally and second modification time information of the data corresponding to the data calling request from second metadata information stored in a file service end, wherein the first modification time information indicates modification time information of data in the kernel module, and the second modification time information indicates modification time information of data in the file service end;
comparing, by the userspace process, the first modification time information with the second modification time information;
in response to the first modification time information and the second modification time information being inconsistent based on the comparing, returning a verification invalidation result to the kernel module;
invalidating, by the kernel module, the data in the kernel module, according to the verification invalidation result;
deleting, by the kernel module, the invalidated data in the kernel module;
in response to the first modification time information being consistent with the second modification time information, returning a verification validation result to the kernel module;
determining, by the kernel module, that data in the kernel module is valid according to the verification validation result;
synchronizing, by the userspace process using the valid data, the data in the file service end to the kernel module; and
in response to the kernel module sending a data shutdown request to the userspace process, caching dirty data to obtain cached data and updating the second modification time information of the cached data in the file service end after writing the cached data back to the file service end.
|