diff --git a/fs/notify/mark.c b/fs/notify/mark.c index 08ab7b252322da210e2953478af3b712c6937e24..416ba91750a9f68707d720a649b147ccbd7244cd 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c @@ -158,9 +158,9 @@ static struct inode *fsnotify_detach_from_object(struct fsnotify_mark *mark) if (conn->flags & FSNOTIFY_OBJ_TYPE_INODE) inode = conn->inode; } + __fsnotify_recalc_mask(conn); mark->connector = NULL; spin_unlock(lock); - fsnotify_recalc_mask(conn); return inode; }