]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
f2fs: fix to keep compatibility of fault injection interface
authorChao Yu <chao@kernel.org>
Fri, 6 Aug 2021 02:45:20 +0000 (10:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:41:54 +0000 (13:41 +0200)
[ Upstream commit b96d9b3b09f0427b289332c6f6bfbf747a19b654 ]

The value of FAULT_* macros and its description in f2fs.rst became
inconsistent, fix this to keep compatibility of fault injection
interface.

Fixes: 67883ade7a98 ("f2fs: remove FAULT_ALLOC_BIO")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/filesystems/f2fs.rst
fs/f2fs/f2fs.h

index b91e5a8444d5b675aeed771cdcaa7892f034fd39..7f52d9079d764a224cad467f4658b245e6bbbed5 100644 (file)
@@ -185,6 +185,7 @@ fault_type=%d                Support configuring fault injection type, should be
                         FAULT_KVMALLOC           0x000000002
                         FAULT_PAGE_ALLOC         0x000000004
                         FAULT_PAGE_GET           0x000000008
+                        FAULT_ALLOC_BIO          0x000000010 (obsolete)
                         FAULT_ALLOC_NID          0x000000020
                         FAULT_ORPHAN             0x000000040
                         FAULT_BLOCK              0x000000080
index 7084b42a443743d2c6a4549112773d2433f80689..395f18e90a8f613be1ef9929ce2d277dfb152b4b 100644 (file)
@@ -43,6 +43,7 @@ enum {
        FAULT_KVMALLOC,
        FAULT_PAGE_ALLOC,
        FAULT_PAGE_GET,
+       FAULT_ALLOC_BIO,        /* it's obsolete due to bio_alloc() will never fail */
        FAULT_ALLOC_NID,
        FAULT_ORPHAN,
        FAULT_BLOCK,