From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: with ECARTIS (v1.0.0; list xfs); Tue, 02 Sep 2008 20:55:15 -0700 (PDT) Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with SMTP id m833suR6001302 for ; Tue, 2 Sep 2008 20:54:58 -0700 Message-ID: <48BE0CB7.6050206@sgi.com> Date: Wed, 03 Sep 2008 14:04:07 +1000 From: Lachlan McIlroy Reply-To: lachlan@sgi.com MIME-Version: 1.0 Subject: Re: [PATCH] buffer flag NONE is actually DONE References: <48BCC8C2.7040103@sgi.com> <48BCE564.5070408@sgi.com> In-Reply-To: <48BCE564.5070408@sgi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com List-Id: xfs To: Timothy Shimmin Cc: xfs-dev , xfs-oss How's this then? There's a few flags that don't exist anymore. --- a/fs/xfs/xfsidbg.c 2008-09-03 13:53:12.000000000 +1000 +++ b/fs/xfs/xfsidbg.c 2008-09-03 13:59:47.000000000 +1000 @@ -1925,11 +1925,11 @@ static int kdbm_iptraceaddr( static char *bp_flag_vals[] = { -/* 0 */ "READ", "WRITE", "MAPPED", "PARTIAL", "ASYNC", -/* 5 */ "NONE", "DELWRI", "STALE", "FS_MANAGED", "FS_DATAIOD", -/* 10 */ "FORCEIO", "FLUSH", "READ_AHEAD", "DIRECTIO", "LOCK", -/* 15 */ "TRYLOCK", "DONT_BLOCK", "PAGE_CACHE", "KMEM_ALLOC", "RUN_QUEUES", -/* 20 */ "PRIVATE_BH", "DELWRI_Q", +/* 0 */ "READ", "WRITE", "MAPPED", "", "ASYNC", +/* 5 */ "DONE", "DELWRI", "STALE", "FS_MANAGED", "", +/* 10 */ "", "ORDERED", "READ_AHEAD", "", "LOCK", +/* 15 */ "TRYLOCK", "DONT_BLOCK", "PAGE_CACHE", "PAGES", "RUN_QUEUES", +/* 20 */ "", "DELWRI_Q", "PAGE_LOCKED", NULL }; static char *iomap_flag_vals[] = { Timothy Shimmin wrote: > Lachlan McIlroy wrote: >> Amazing but true. >> >> --- a/fs/xfs/xfsidbg.c 2008-09-02 14:52:11.000000000 +1000 >> +++ b/fs/xfs/xfsidbg.c 2008-09-02 14:51:04.000000000 +1000 >> @@ -1926,7 +1926,7 @@ static int kdbm_iptraceaddr( >> >> static char *bp_flag_vals[] = { >> /* 0 */ "READ", "WRITE", "MAPPED", "PARTIAL", "ASYNC", >> -/* 5 */ "NONE", "DELWRI", "STALE", "FS_MANAGED", "FS_DATAIOD", >> +/* 5 */ "DONE", "DELWRI", "STALE", "FS_MANAGED", "FS_DATAIOD", >> /* 10 */ "FORCEIO", "FLUSH", "READ_AHEAD", "DIRECTIO", "LOCK", >> /* 15 */ "TRYLOCK", "DONT_BLOCK", "PAGE_CACHE", "KMEM_ALLOC", "RUN_QUEUES", >> /* 20 */ "PRIVATE_BH", "DELWRI_Q", > > Looks good. > > Quick look at possible mismatching names: > > 11 "FLUSH" vs "ORDERED" > 18 "KMEM_ALLOC" vs "PAGES" > 22 NULL vs "PAGE_LOCKED" > > --Tim >