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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4C7ECD54B3 for ; Tue, 19 Sep 2023 10:53:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1CAE56B04F2; Tue, 19 Sep 2023 06:53:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 110176B04F5; Tue, 19 Sep 2023 06:53:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DB5706B04F3; Tue, 19 Sep 2023 06:53:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id BBCD66B04F2 for ; Tue, 19 Sep 2023 06:53:09 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 70083140C67 for ; Tue, 19 Sep 2023 10:53:09 +0000 (UTC) X-FDA: 81253034898.22.4090961 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf01.hostedemail.com (Postfix) with ESMTP id 6C35D40009 for ; Tue, 19 Sep 2023 10:53:06 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="n/1ni1EM"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695120787; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=xyGv8+51cZuPaSHr89luhXZQadISbj5VYUpNgIecuJg=; b=hS2fS46vGkLBB6iNSYMZsnlyciXudkn9GF0WCzkusYT8GTEoQjQlyuqm+ulVK3FV4b+6iU MPLBbtAMx9TfsCVbhXVraP+qrUFz76VENHCNKdn7N29bQ3dY2byGKsfs1ImlShqoEGuE2d wGXvDTMEJ4xny5Y5cGa4GLH/mw1lZn0= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="n/1ni1EM"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695120787; a=rsa-sha256; cv=none; b=C31XpNxWn4JgdfwPQ6Q/bnteeTUArdWmcDKe/VXhVLjCp1NxhdULA6BeQWI4kD2wfG0tSj NtMYU+GO+VTGC4wo3W7R52HauseFvblUjY1eQ/HnxzLxhBkgA5nCd24uu+z+raHnLPMaxa X6WjXEM4ekC1j407ffnsoT61Iyy22PY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695120786; x=1726656786; h=date:from:to:cc:subject:message-id:mime-version; bh=kH9cYkiwx4gHdyI6XAjUPtb76Rex1yjdbGgVHs5eTF8=; b=n/1ni1EMoWbpsmRw0OE2TnZa3Vwy97w1o4x5cwie9JX1UUv6EGzKUGLM gQFNt2ZZ92/4Pb6RvoifMtk4qr4huVNqW5jP51B3+tcezxcfNAbncx1sJ a48bNieg2GmaGHBFrNCw9ODkH1ztW8gyDIoFQo4aTD89xnSWADJJ/KvK4 fgzW3/NOGLJMJLCPIVysX8mP0d4CPmVHI5AGFCUxo2/3EIfs5BIQz+Swn W/H9ioqLCMy8GDrOs7+1XQIW531ZD3zEJvmZSwMsEDZX+PndESjeQ+PoD fxE6Nc8vhSJZh241XXo9UDYMhOINoYCy+bZLbPv7Dq6w1b0cqyc/Yd6W3 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="379812930" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="379812930" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 03:53:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="993124114" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="993124114" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 19 Sep 2023 03:53:02 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qiYLk-0007Eq-33; Tue, 19 Sep 2023 10:53:00 +0000 Date: Tue, 19 Sep 2023 18:52:37 +0800 From: kernel test robot To: Kent Overstreet Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 1836/6333] fs/bcachefs/journal_seq_blacklist.c:159:26: warning: array subscript idx is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' Message-ID: <202309191855.UhxeKA3r-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 6C35D40009 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: krz6hwdej7mjh9ik7rgw3xbqiudk8dda X-HE-Tag: 1695120786-211457 X-HE-Meta: U2FsdGVkX1+fS9moWub+tAHvH/coyfUCNRpGtIfg4ntSwVESijOmxaqBVHfA3QkVQ1lfAaqNLyDAZ7FTPrnTrPIOIgpLwgMmlrIstOGTPEH/XKr2Xt5knl0GH9OYy9mJVhw/DVyuh7mhyEIc4dyYOrh+7KKV6LZNq859EMK1kJ0zNUpWyJhB5koGgBHEqhcq45CNTB1tIYyLeuXi8zXhFnwKfeKVsSXCSWFOyA/3x8weNGYD4nD1FR98jzF84VTB4fAMSuSiQGd1wQCd85McaEfnMuoOMCKdNuhN4FxMsNRWpVKPVxuD8y4ZBu4bykx3vV+ZWhD75E/czNgPq3BeZYGWytpsJE7mSGWTqN8fLTkOnDEkoCFNqE3qm+HGulfb2CTCSZL0LGk8zGPrm5r+SiAhfUGkXogS7YCgD/y4SonQYvjiO77VQX05qH+JTlZ2gXEeYoqWXPT+opC5ULzfVExlnn4o4MJSdD8yeHB2EiC5DgzgVwwiFGmZdMHVghoY8S1ceeYnR4fBv8OS6XVcSvRzI2DKSOZ1FgwiRL2h715JgijgIZPuEuy2liutsFuDavV1Qo5UJ491JGOX14PDozvbP08J/Y1MnTPbYw7jqLF5/GdITBVS+l0px6mx8UiQqzLIQUug8DHNigdy+Dj8inE2vY+M0YxRCi1GV3wy0fbqS4oxmJbjcGL6A2mwiDV3hyhy3sGLm5UA8sILrFcmZnxbBrMDrDbCpFiElp1p/SpEI2261hkzZPb5RnCmNaHXpyALwDhltCj7IxsWHLLlIX4CM1qo5frA2cY4fndYhV4TlpbpM7NQHQIrVujuEwJIrsmmVBM3P141HFdtjO+nLnwN3LVdE7948aNMrJIrDTpOq1m/XR11szTtFgdbdEGmRrr/sKAA3cGP1vT9JnHFgZHS8+iRwuZq3oRKchq/RQk10X97mlne7ryejs5trVtumcmt598Yx35rswW5mp3 6UH3Dqoz yOPd5NR5PM4dX4w/0y6cHuF4VSzfGY6v07MwEQTtbRU7StVYJY19NM67ql3G9xwEor4pLTmIRwx2JnJrP5ESP6N7JO7rrqAdvvwsgt2qZtlATF9dE/RvT+Tr1P5sJhUTpLlwgyT04U+u5U92M/bjbtCn/iTX1/dtn0sAifKv93yt6C7naErWr1lKr3PN2aJYdoUk2PPmt6Cp4HlqbfvuE4EiiSLRjUJ0+iEzlKbny8zpZt4UsMib6KNUhBPbigLvKVkP4A9k2oe/mil+2DzmXRT8YPG74bfQFhjG25QIjYpWCFmTR6l/MsAU8Zdyn07l4OrKTBH5tk5RdO+je4i6+ofGLRg7xtDEu3r5O X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 29e400e3ea486bf942b214769fc9778098114113 commit: 8b35d6a1e1f2a9b790744db7883cfc04814a73fb [1836/6333] bcachefs: Rewrite journal_seq_blacklist machinery config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230919/202309191855.UhxeKA3r-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230919/202309191855.UhxeKA3r-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309191855.UhxeKA3r-lkp@intel.com/ All warnings (new ones prefixed by >>): | ^~~~ fs/bcachefs/bcachefs_format.h:767:1: note: in expansion of macro 'LE32_BITMASK' 767 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:767:14: warning: 'INODE_STR_HASH_BITS' defined but not used [-Wunused-const-variable=] 767 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:86:25: note: in definition of macro 'LE_BITMASK' 86 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/bcachefs_format.h:767:1: note: in expansion of macro 'LE32_BITMASK' 767 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:767:14: warning: 'INODE_STR_HASH_OFFSET' defined but not used [-Wunused-const-variable=] 767 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:85:25: note: in definition of macro 'LE_BITMASK' 85 | static const unsigned name##_OFFSET = offset; \ | ^~~~ fs/bcachefs/bcachefs_format.h:767:1: note: in expansion of macro 'LE32_BITMASK' 767 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:447:23: warning: 'bch_crc_bytes' defined but not used [-Wunused-const-variable=] 447 | static const unsigned bch_crc_bytes[] = { | ^~~~~~~~~~~~~ In file included from include/linux/byteorder/little_endian.h:5, from arch/alpha/include/uapi/asm/byteorder.h:5, from include/asm-generic/bitops/le.h:6, from arch/alpha/include/asm/bitops.h:452, from include/linux/bitops.h:68, from include/linux/radix-tree.h:11, from include/linux/backing-dev-defs.h:6, from fs/bcachefs/bcachefs.h:182: fs/bcachefs/journal_seq_blacklist.c: In function 'blacklist_entry_try_merge': fs/bcachefs/journal_seq_blacklist.c:62:34: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 62 | if (le64_to_cpu(bl->start[i].end) >= | ~~~~~~~~~^~~ include/uapi/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le64_to_cpu' 33 | #define __le64_to_cpu(x) ((__force __u64)(__le64)(x)) | ^ fs/bcachefs/journal_seq_blacklist.c:62:13: note: in expansion of macro 'le64_to_cpu' 62 | if (le64_to_cpu(bl->start[i].end) >= | ^~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:63:34: warning: array subscript is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 63 | le64_to_cpu(bl->start[i + 1].start)) { | ~~~~~~~~~^~~~~~~ include/uapi/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le64_to_cpu' 33 | #define __le64_to_cpu(x) ((__force __u64)(__le64)(x)) | ^ fs/bcachefs/journal_seq_blacklist.c:63:13: note: in expansion of macro 'le64_to_cpu' 63 | le64_to_cpu(bl->start[i + 1].start)) { | ^~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:64:45: warning: array subscript is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 64 | bl->start[i].end = bl->start[i + 1].end; | ~~~~~~~~~^~~~~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:64:26: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 64 | bl->start[i].end = bl->start[i + 1].end; | ~~~~~~~~~^~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:66:25: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 66 | memmove(&bl->start[i], | ^~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:67:25: warning: array subscript is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 67 | &bl->start[i + 1], | ^~~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c: In function 'bch2_journal_seq_blacklist_add': fs/bcachefs/journal_seq_blacklist.c:120:18: warning: array subscript is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 120 | bl->start[nr].start = cpu_to_le64(start); | ~~~~~~~~~^~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:121:18: warning: array subscript is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 121 | bl->start[nr].end = cpu_to_le64(end); | ~~~~~~~~~^~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ In file included from include/linux/build_bug.h:5, from include/linux/container_of.h:5, from include/linux/list.h:5, from include/linux/backing-dev-defs.h:5: fs/bcachefs/journal_seq_blacklist.c: In function 'bch2_journal_seq_is_blacklisted': >> fs/bcachefs/journal_seq_blacklist.c:159:26: warning: array subscript idx is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 159 | BUG_ON(t->entries[idx].start > seq); | ~~~~~~~~~~^~~~~ include/linux/compiler.h:77:45: note: in definition of macro 'unlikely' 77 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ fs/bcachefs/journal_seq_blacklist.c:159:9: note: in expansion of macro 'BUG_ON' 159 | BUG_ON(t->entries[idx].start > seq); | ^~~~~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ fs/bcachefs/journal_seq_blacklist.c:161:30: warning: array subscript idx is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 161 | if (seq >= t->entries[idx].end) | ~~~~~~~~~~^~~~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ fs/bcachefs/journal_seq_blacklist.c:165:27: warning: array subscript idx is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 165 | t->entries[idx].dirty = true; | ~~~~~~~~~~^~~~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ fs/bcachefs/journal_seq_blacklist.c: In function 'bch2_blacklist_table_initialize': fs/bcachefs/journal_seq_blacklist.c:189:64: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 189 | t->entries[i].start = le64_to_cpu(bl->start[i].start); | ~~~~~~~~~^~~ include/uapi/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le64_to_cpu' 33 | #define __le64_to_cpu(x) ((__force __u64)(__le64)(x)) | ^ fs/bcachefs/journal_seq_blacklist.c:189:43: note: in expansion of macro 'le64_to_cpu' 189 | t->entries[i].start = le64_to_cpu(bl->start[i].start); | ^~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:189:27: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 189 | t->entries[i].start = le64_to_cpu(bl->start[i].start); | ~~~~~~~~~~^~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ fs/bcachefs/journal_seq_blacklist.c:190:64: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_entry[0]' [-Warray-bounds=] 190 | t->entries[i].end = le64_to_cpu(bl->start[i].end); | ~~~~~~~~~^~~ include/uapi/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le64_to_cpu' 33 | #define __le64_to_cpu(x) ((__force __u64)(__le64)(x)) | ^ fs/bcachefs/journal_seq_blacklist.c:190:43: note: in expansion of macro 'le64_to_cpu' 190 | t->entries[i].end = le64_to_cpu(bl->start[i].end); | ^~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1137:52: note: while referencing 'start' 1137 | struct journal_seq_blacklist_entry start[0]; | ^~~~~ fs/bcachefs/journal_seq_blacklist.c:190:27: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 190 | t->entries[i].end = le64_to_cpu(bl->start[i].end); | ~~~~~~~~~~^~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ fs/bcachefs/journal_seq_blacklist.c: In function 'bch2_blacklist_entries_gc': fs/bcachefs/journal_seq_blacklist.c:294:34: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 294 | BUG_ON(t->entries[i].start != le64_to_cpu(src->start)); | ~~~~~~~~~~^~~ include/linux/compiler.h:77:45: note: in definition of macro 'unlikely' 77 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ fs/bcachefs/journal_seq_blacklist.c:294:17: note: in expansion of macro 'BUG_ON' 294 | BUG_ON(t->entries[i].start != le64_to_cpu(src->start)); | ^~~~~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ fs/bcachefs/journal_seq_blacklist.c:295:34: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 295 | BUG_ON(t->entries[i].end != le64_to_cpu(src->end)); | ~~~~~~~~~~^~~ include/linux/compiler.h:77:45: note: in definition of macro 'unlikely' 77 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ fs/bcachefs/journal_seq_blacklist.c:295:17: note: in expansion of macro 'BUG_ON' 295 | BUG_ON(t->entries[i].end != le64_to_cpu(src->end)); | ^~~~~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ fs/bcachefs/journal_seq_blacklist.c:297:31: warning: array subscript i is outside array bounds of 'struct journal_seq_blacklist_table_entry[0]' [-Warray-bounds=] 297 | if (t->entries[i].dirty) | ~~~~~~~~~~^~~ fs/bcachefs/bcachefs.h:522:33: note: while referencing 'entries' 522 | } entries[0]; | ^~~~~~~ vim +159 fs/bcachefs/journal_seq_blacklist.c 141 142 bool bch2_journal_seq_is_blacklisted(struct bch_fs *c, u64 seq, 143 bool dirty) 144 { 145 struct journal_seq_blacklist_table *t = c->journal_seq_blacklist_table; 146 struct journal_seq_blacklist_table_entry search = { .start = seq }; 147 int idx; 148 149 if (!t) 150 return false; 151 152 idx = eytzinger0_find_le(t->entries, t->nr, 153 sizeof(t->entries[0]), 154 journal_seq_blacklist_table_cmp, 155 &search); 156 if (idx < 0) 157 return false; 158 > 159 BUG_ON(t->entries[idx].start > seq); 160 161 if (seq >= t->entries[idx].end) 162 return false; 163 164 if (dirty) 165 t->entries[idx].dirty = true; 166 return true; 167 } 168 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki