kernel: replace fsnotify_add_mark_locked to fsnotify_add_inode_mark for pre Linux-4.12

* oof, this function is correct already

Signed-off-by: Faris <rissu.ntk@gmail.com>
This commit is contained in:
Faris
2025-11-01 17:30:16 +07:00
committed by ShirkNeko
parent e0aafc66c6
commit 7145fd537d

View File

@@ -116,7 +116,7 @@ static int add_mark_on_inode(struct inode *inode, u32 mask,
} }
#else /* TODO: Need more tests on k4.4 and k4.9! */ #else /* TODO: Need more tests on k4.4 and k4.9! */
mutex_lock(&g->mark_mutex); mutex_lock(&g->mark_mutex);
if (fsnotify_add_mark_locked(m, g, inode, NULL, 0)) { if (fsnotify_add_inode_mark(m, g, inode, 0)) {
fsnotify_put_mark(m); fsnotify_put_mark(m);
mutex_unlock(&g->mark_mutex); mutex_unlock(&g->mark_mutex);
return -EINVAL; return -EINVAL;