diff mbox

xfs_io: add buf_lru_ref tag to inject table

Message ID 79e391ff-fbb5-baf9-bb36-776d956ccecf@redhat.com (mailing list archive)
State Superseded
Headers show

Commit Message

Eric Sandeen Nov. 30, 2017, 10:12 p.m. UTC
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

it might be nice to also allow specification by number, but
for now just fix this up to match the currently-defined tags.


--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Darrick J. Wong Nov. 30, 2017, 10:23 p.m. UTC | #1
On Thu, Nov 30, 2017 at 04:12:32PM -0600, Eric Sandeen wrote:
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>

/me wonders if we could make so that the compiler complains about
missing table entries here, but that's orthogonal to this patch so:

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>

--D

> ---
> 
> it might be nice to also allow specification by number, but
> for now just fix this up to match the currently-defined tags.
> 
> diff --git a/io/inject.c b/io/inject.c
> index 9d0cf62..2f15854 100644
> --- a/io/inject.c
> +++ b/io/inject.c
> @@ -62,6 +62,7 @@ error_tag(char *name)
>  		{ XFS_ERRTAG_DROP_WRITES,		"drop_writes" },
>  		{ XFS_ERRTAG_LOG_BAD_CRC,		"log_bad_crc" },
>  		{ XFS_ERRTAG_LOG_ITEM_PIN,		"log_item_pin" },
> +		{ XFS_ERRTAG_BUF_LRU_REF,		"buf_lru_ref" },
>  		{ XFS_ERRTAG_MAX,			NULL }
>  	};
>  	int	count;
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/io/inject.c b/io/inject.c
index 9d0cf62..2f15854 100644
--- a/io/inject.c
+++ b/io/inject.c
@@ -62,6 +62,7 @@  error_tag(char *name)
 		{ XFS_ERRTAG_DROP_WRITES,		"drop_writes" },
 		{ XFS_ERRTAG_LOG_BAD_CRC,		"log_bad_crc" },
 		{ XFS_ERRTAG_LOG_ITEM_PIN,		"log_item_pin" },
+		{ XFS_ERRTAG_BUF_LRU_REF,		"buf_lru_ref" },
 		{ XFS_ERRTAG_MAX,			NULL }
 	};
 	int	count;