Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1090618ybh; Wed, 11 Mar 2020 17:23:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvUOal8PkRgYCj7AmjhfpefH11M5nlOboIf/xUKXwuPwDHiCjz+WVhTKaAv2173Qk47Z4kO X-Received: by 2002:a4a:d515:: with SMTP id m21mr2115701oos.37.1583972634393; Wed, 11 Mar 2020 17:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583972634; cv=none; d=google.com; s=arc-20160816; b=bWlSUwyZEcl7scVFr13rxZl0wLzLTnf7AJYfdFp1MFCROa25DkbH0IAMDfm62gZpWj dbJsywy9BzjJXb5edafNKDKojeeVN3Ebc7+OD4lVn8K5ogQFqArRKARCxPMcnjK1ZSev QCz/H8oamJt4jH80GVagiJu9/ZlmmlX9PjgO36o5OdbwIBCsACgCO5jEJI7umS/xROJs oEBstaEWHS+ZnGnVyEOy2HO6AASsT9RWLETUKXSdgBeiqe3gns0eCCLOUPd7wX4W4lNv iWf2SM0mi9cRsWnpUudLQd5QJYMiWrug220CMKdG9k351Hrxo/tEzbjXnrlmTlXZNf4U CcBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/Y07gbfPjF/rDVII6hbI+/pDFRnbg5DF5S+FUcUOsKo=; b=mNinRwiYoc31hGI/CtFGB4EN/PWDcyiFPfs79E6XwAXlxZ2PrayI6y8Qa8AkBFY53i 9sUSfWuYivD+V8TqqFMNPLKX847lS6xUm9dcvNITtHCDuGVh2pBSIq9XGNEJkC6sf1Ml y1jXYBTpbYkyL/Uud1xwZPb2tRGIvCKPWvrO6LeG+/OQs7yQ+5tzkym+v6SXf5Q1S+QT BSyrFumPrnE/75ZkUjb+rJaAu3AEZk1eEGY+ItyuEefzhMPaS4JD4vkil11gunJrBnDF ZXKhCXSHAo0BG3coH2ToeMUPmuSatcmttAWBs9Tbnf8G3X/MXZymHYwsnbkm0ZodGGFb LLcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MmlVyRPr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si811388ooq.16.2020.03.11.17.23.41; Wed, 11 Mar 2020 17:23:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MmlVyRPr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731594AbgCLAWI (ORCPT + 99 others); Wed, 11 Mar 2020 20:22:08 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55302 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgCLAWH (ORCPT ); Wed, 11 Mar 2020 20:22:07 -0400 Received: by mail-wm1-f67.google.com with SMTP id 6so4181865wmi.5 for ; Wed, 11 Mar 2020 17:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/Y07gbfPjF/rDVII6hbI+/pDFRnbg5DF5S+FUcUOsKo=; b=MmlVyRPrIaPl3nCRHHcDC/20Sr8pYadVfiz/QxL0Xb1YfW84qOrgiY1GJpzt9CNXb4 Y1BzdFWTAMc9X+QbFWvalnFFSCEibFi4NcIdzLhEFg2PHIQuw5MkD8siLW+8fpD8zc2y vWkt6OzVNAuuT0RvZ8F9k467fiktgLv7bjoogUgja0gLjA3L4BZRNl/BUUtAbwlCykvG cPAfaYErTmOXY9WBqr/Mv7tSNMxvnEk08uDIMkMe+EMoYP7nWnfIPjHo6HBUMGJlZPAV rPQVIGrLQeD5i5EUDqVdqCBwy454PzYzB7BBG8AVwXvpHr96sgdXQPhSyMfZotpM1H7j oHMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/Y07gbfPjF/rDVII6hbI+/pDFRnbg5DF5S+FUcUOsKo=; b=rYsR3UF9K58NCtmxw81QJP8hHudsr+jtQr8xtvdUsBnQSe5c2g9OJNMseEPEumQS+n RQsd/v7hOBIIWO0157feUT5BsT1G7sci10QjXBTOQkKBy1GAn++tY1Cftsl52+h2VjWh VD0ipGTwEnTyTwNcZMfi5sIc736Hoy7MIK0cRQetx4PVsAlrumKTJK/mUUww4WQLVGy3 S/zqlg0AD+jH3nxevTmuHcoC1Q24FawQeWraUi4/8Q53xmFW6QVxfNgQMtniLJaSbyBE gz6nOsU7plGNqm00S5xhJMbCRLw+6uzF7czW+UVfVj/ZH6mktljWZfBW4VTWF4OeMcX4 Ug5Q== X-Gm-Message-State: ANhLgQ3urBJWMvodIeEX7HP+SHNGdTgK8k0Hf7JDmJgpoujcRb/u9whF fC4NeIoGIZO6hHhiollxQA== X-Received: by 2002:a7b:cd13:: with SMTP id f19mr1344348wmj.10.1583972525650; Wed, 11 Mar 2020 17:22:05 -0700 (PDT) Received: from ninjahost.lan (host-2-102-15-144.as13285.net. [2.102.15.144]) by smtp.googlemail.com with ESMTPSA id w9sm35254337wrn.35.2020.03.11.17.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 17:22:05 -0700 (PDT) From: Jules Irenge To: boqun.feng@gmail.com Cc: linux-mm@kvack.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/1] Refactoring wb_congested_put() Date: Thu, 12 Mar 2020 00:21:55 +0000 Message-Id: <20200312002156.49023-1-jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi I expanded the lock function refcount_dec_and_lock_irqsave(&congested->refcnt, &cgwb_lock, &flags) and rearrange the code so that it can look simple and Sparse will not throw a warning. Please feel free to leave me any feedback Thanks Jules Irenge (1): backing-dev: refactor wb_congested_put() mm/backing-dev.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) -- 2.24.1