Re: [PATCH v6 18/27] files-backend: replace submodule_allowed check in files_downcast()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/26/2017 04:16 AM, Duy Nguyen wrote:
> On Mon, Mar 20, 2017 at 4:18 AM, Michael Haggerty <mhagger@xxxxxxxxxxxx> wrote:
>>> +/* ref_store_init flags */
>>> +#define REF_STORE_READ               (1 << 0)
>>
>> I asked [1] in reply to v5 whether `REF_STORE_READ` is really necessary
>> but I don't think you replied. Surely a reference store that we can't
>> read would be useless? Can't we just assume that any `ref_store` is
>> readable and drop this constant?
> 
> I deleted it then I realized many lines like these
> 
>     files_downcast(ref_store, REF_STORE_READ, "read_raw_ref");
> 
> would become
> 
>     files_downcast(ref_store, 0, "read_raw_ref");
> 
> I think for newcomers, the former gives a better hint what the second
> argument is than a plain zero in the latter, so I'm inclined to keep
> it.

That's OK with me; I don't feel strongly about it.

Michael




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]