diff options
| author | Amir Goldstein <[email protected]> | 2021-03-22 17:39:44 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2021-04-19 14:03:48 +0000 |
| commit | 59cda49ecf6c9a32fae4942420701b6e087204f6 (patch) | |
| tree | 8a24983b9d5074a44a9ae419904de8b3dbb4f27e /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | fs: introduce a wrapper uuid_to_fsid() (diff) | |
| download | kernel-59cda49ecf6c9a32fae4942420701b6e087204f6.tar.gz kernel-59cda49ecf6c9a32fae4942420701b6e087204f6.zip | |
shmem: allow reporting fanotify events with file handles on tmpfs
Since kernel v5.1, fanotify_init(2) supports the flag FAN_REPORT_FID
for identifying objects using file handle and fsid in events.
fanotify_mark(2) fails with -ENODEV when trying to set a mark on
filesystems that report null f_fsid in stasfs(2).
Use the digest of uuid as f_fsid for tmpfs to uniquely identify tmpfs
objects as best as possible and allow setting an fanotify mark that
reports events with file handles on tmpfs.
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Hugh Dickins <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions
