From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F41DC624D4 for ; Thu, 3 Sep 2026 16:05:36 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id E68F53EB0BB for ; Thu, 3 Sep 2026 18:05:34 +0200 (CEST) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id C29583E1D09 for ; Thu, 3 Sep 2026 18:05:19 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 5C3C510009F2 for ; Thu, 3 Sep 2026 18:05:19 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 574B821FB5; Thu, 3 Sep 2026 16:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1788451514; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9XPzg9YdPnRp5Qv0VVkaXdmUqDEaSgSPDtiMCAFAKeU=; b=U+3/qZwR2/QQ8ExMbkI9osSOh4shiP4d+CARQWqiRMEBL8QZtlmDV9VpngiqxaLa9+MQ5P F3iYyITSW8ajqScgfX4vVLS+PGDqqvE2ZVTNvYNN4WaxLDfWvUG1eoIR1EPcVgz436ZbRv 5UIKrxnbQ6/VuwnXSM5X+33HhJq27Q8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1788451514; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9XPzg9YdPnRp5Qv0VVkaXdmUqDEaSgSPDtiMCAFAKeU=; b=zVJ7rrXUn26qd0Mu7H3llxWaFkGqFJgN0n8ZW/+5lbKVO+LSvDzpCo715ztkaDhvv5uYDT OZdPMOFaUhWypsDA== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=FpHBIBAy; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=KUuqepmd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1788451510; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9XPzg9YdPnRp5Qv0VVkaXdmUqDEaSgSPDtiMCAFAKeU=; b=FpHBIBAyVNNfHJ6hmwUpYJD7Y4BvZl/oWZ3BH6+FIEu4bmBVZmDExtzusQOldbUFHwHwaV GC33U78faxCwubpzFizJltyln6fvP5NQU/04KTJNwXAJTgZZ15IP1uD3ozUUhqj3yAdIBI 3VnyBhFUnzFx3I9jh/YahVLSsjfLOpY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1788451510; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9XPzg9YdPnRp5Qv0VVkaXdmUqDEaSgSPDtiMCAFAKeU=; b=KUuqepmd2Iv8ggzt/yK4iSReZ216FuNP1S/dwvF2Hhx+5ALjIckvpt1JK4hhnhBsMAoL0v CicfzIxzNbU2btCA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 25C7C136D9; Thu, 3 Sep 2026 16:05:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id MBoqCLaamWpFdQAAD6G6ig (envelope-from ); Thu, 03 Sep 2026 16:05:10 +0000 Date: Thu, 3 Sep 2026 18:05:00 +0200 From: Petr Vorel To: Cyril Hrubis Message-ID: <20260903160500.GF1107507@pevik> References: <20260827112157.1748734-1-chrubis@suse.cz> <20260827112157.1748734-14-chrubis@suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260827112157.1748734-14-chrubis@suse.cz> X-Rspamd-Queue-Id: 574B821FB5 X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spamd-Result: default: False [-3.71 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; HAS_REPLYTO(0.30)[pvorel@suse.cz]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWO(0.00)[2]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.cz:dkim,suse.cz:email,suse.cz:replyto]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; MISSING_XM_UA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[suse.cz:+]; REPLYTO_EQ_FROM(0.00)[] X-Virus-Scanned: clamav-milter 1.0.9 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH v4 13/31] testcases: sysfs: Add sys_bdi01 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi Cyril, ... > +++ b/testcases/kernel/sysfs/class/bdi/sys_bdi01.c > @@ -0,0 +1,101 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Copyright (c) 2026 Cyril Hrubis > + */ > + > +/*\ > + * Sanity checks for the backing device info (BDI) attributes exported under > + * /sys/class/bdi//. > + * > + * For every BDI the test verifies that: > + * > + * - min_ratio <= max_ratio (both are percentages) > + * - min_ratio_fine <= max_ratio_fine (both are in parts-per-million, i.e. > + * 100% == 1000000) > + * - min_bytes <= max_bytes on kernel 6.2 or later, when max_bytes is set > + * (0 means ``no limit``) > + * - stable_pages_required and strict_limit are booleans > + * - read_ahead_kb is non-negative > + * > + * The test skips with TCONF when no BDI is present. > + * > + * min_bytes/max_bytes were added by commit 1bf27e98d26d (``mm: add > + * bdi_set_max_bytes() function``), targeting the Linux 6.2 merge window. very very nit: s/, targeting the Linux 6.2 merge window/ in kernel 6.2/ The code look perfect. Kind regards, Petr -- Mailing list info: https://lists.linux.it/listinfo/ltp