Re: [PATCH 08/18] fs: add fget_many() and fput_many()

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

 



On 1/28/19 7:29 AM, Christoph Hellwig wrote:
>> +struct file *fget_many(unsigned int fd, unsigned int refs)
>> +{
>> +	return __fget(fd, FMODE_PATH, refs);
>> +}
>> +
>>  struct file *fget(unsigned int fd)
>>  {
>> -	return __fget(fd, FMODE_PATH);
>> +	return fget_many(fd, 1);
> 
> I'd still prefer removing the double indirection in this call, but
> I know you disagree.

Not a big deal, I can kill it.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux