FS_ERROR is a fsnotify event type used by monitoring tools to detect conditions that might require intervention from a recovery tool or from sysadmins. This patch series enables tmpfs to report an event when an operation fails because the file system is full. It attempts to only report events when the filesystem is really full, instead of errors caused by memory pressure. The first patch prepares the terrain by detecting these two different conditions, and the second patch actually adds the event triggers. Gabriel Krisman Bertazi (2): shmem: Differentiate cause of blk account error due to lack of space shmem: Trigger FS_ERROR notification when file system is full mm/shmem.c | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) -- 2.33.0