xfs: remove WARN when dquot cache insertion fails
authorDave Chinner <dchinner@redhat.com>
Wed, 12 Apr 2023 05:48:59 +0000 (15:48 +1000)
committerDave Chinner <dchinner@redhat.com>
Wed, 12 Apr 2023 05:48:59 +0000 (15:48 +1000)
It just creates unnecessary bot noise these days.

Reported-by: syzbot+6ae213503fb12e87934f@syzkaller.appspotmail.com
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_dquot.c

index 8fb90da..7f07175 100644 (file)
@@ -798,7 +798,6 @@ xfs_qm_dqget_cache_insert(
        error = radix_tree_insert(tree, id, dqp);
        if (unlikely(error)) {
                /* Duplicate found!  Caller must try again. */
-               WARN_ON(error != -EEXIST);
                mutex_unlock(&qi->qi_tree_lock);
                trace_xfs_dqget_dup(dqp);
                return error;