Received: by 10.192.165.148 with SMTP id m20csp34374imm; Wed, 9 May 2018 08:22:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr1aTqW3sgIfSwsauAnSf6EojOhGgvj0HH8BYJqvEoxDuhWKpVkNL+IE16te+czd8A9HL1R X-Received: by 2002:a17:902:7582:: with SMTP id j2-v6mr28051643pll.65.1525879342763; Wed, 09 May 2018 08:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525879342; cv=none; d=google.com; s=arc-20160816; b=aCG+hvjYXHGyfEthqNEslPVjUbBBeKzOXHn9TOyZEfEsf6UPoTRpbwD5cQUxD74fc2 1IWWnK3QaqerIVdN2K3+VJHsvCEzTYoPR+RUYzGjXfhKQyz/MvgogqczIvhqT4X0twoz gMcZU8nxpfeE28VXAi1cTTp9w2N4B1F4WR8fjR8FOLHlwvGGwAyniIQsDmhg/FcGLNhm QcCtrazbtDiQtpYM5x0BeQU9VlzVq9BqZGEDCbJz1iTKDIh5rMjcPbfgXS5aktGSQql7 1F5tmTea1xCzI+UIbpIVbdsqJHQJGA1EO+Cuav//jJJvNxFrgs+MVjNBEeDrjOZ2P4yS 5ciw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=RdB85XBipyXRdyu0iMwlnm2PX9f5bGcbPLrs6mB8wtQ=; b=b4YPGvPFByQxoQX4TgArVTByz8fKK1XTUj6LALLTAz0tizEtI7d7RgrHewpQsoElRd hcJWg90k3CQl2+n2ixRUuhZRMT8aB+NAkSbpiwhOh5d6wt7+3HoNjEk83vJdX4QzWEWC xn047Sm8cY2vSQ0y3ROWq3ugqAjAJblbYbwgg40j+5KGfMiH5OcwfBlxsQeMxd03Tdnt fuoEyuvfi8Gut6Hyc4HxGfiiqp45reVFLWS1r8ZCdibq00t78VMLIH3V+Oa5ll1dzx99 wIn9mhVaqAS+X0c3Zga0NK0KbADJxm6sgtsSU3nutFZWZcOO8EcnnkGv6THOmcrFZ7UA 61Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=X43V4ZW3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22-v6si1562187pgo.686.2018.05.09.08.22.06; Wed, 09 May 2018 08:22:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=X43V4ZW3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964933AbeEIPVy (ORCPT + 99 others); Wed, 9 May 2018 11:21:54 -0400 Received: from imap.thunk.org ([74.207.234.97]:34012 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935391AbeEIPVw (ORCPT ); Wed, 9 May 2018 11:21:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RdB85XBipyXRdyu0iMwlnm2PX9f5bGcbPLrs6mB8wtQ=; b=X43V4ZW3SAnLiTNtxVgvngSrIb PN8MMyl1wZZN5IXJk8Mn0okB8dBBs8Hhmm91y0Dcw3zRemluaXkE1HGVCjtvl6quad7WPSzLbpZzM j/JuCOWm1EWpMaO1IAQ2tHfzr9cr0XVEkjopmizuIApoGpaJUYKhAlB/fljarn6Tycbw=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fGQud-0006fE-5M; Wed, 09 May 2018 15:21:51 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 612EF7A5986; Wed, 9 May 2018 11:21:49 -0400 (EDT) Date: Wed, 9 May 2018 11:21:49 -0400 From: "Theodore Y. Ts'o" To: Jens Axboe Cc: adam.manzanares@wdc.com, viro@zeniv.linux.org.uk, bcrl@kvack.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] fs: Convert kiocb rw_hint from enum to u16 Message-ID: <20180509152149.GG28388@thunk.org> Mail-Followup-To: Jens Axboe , adam.manzanares@wdc.com, viro@zeniv.linux.org.uk, bcrl@kvack.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180508174202.2537-1-adam.manzanares@wdc.com> <20180508174202.2537-3-adam.manzanares@wdc.com> <20180509133432.GD28388@thunk.org> <0aad993b-448c-3586-cfc0-f2e50b1dda28@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0aad993b-448c-3586-cfc0-f2e50b1dda28@kernel.dk> User-Agent: Mutt/1.9.5 (2018-04-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 08:23:00AM -0600, Jens Axboe wrote: > Streams is essentially the only thing ki_hint is currently used for, > with the write life time hints mapping to a stream. The idea for the > user side API was to have other things than just write life time hints. > > Since Adam wants to do priorities, he'd either need to pack into the > existing ki_hint, or do this patch does, which is make it smaller and > add a new member. I think the latter is cleaner. Fair enough; but maybe we can use a u8 instead of a u16? 65,535 priorities still seem like way more than would ever make sense. I think 256 priorities is still way to many, but it's simpler while still reserving number of bits for future se. - Ted