Re: [PATCH 1/2] compat_ioctl: don't look up the fd twice

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

 



On Wed, Jan 6, 2016 at 12:25 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> Said that, I'm not sure it's the best approach.  E.g. I2C_* stuff is
> defined only in one driver and if we are touching that code at all,
> we might as well take it out of fs/compat_ioctl.c and be done with
> that - just add ->compat_ioctl() to drivers/i2c/i2c-dev.c and move
> that crap over there

Yeah, that seems a sane thing to do as an alternative if somebody is
willing and able to actually test it..

> Oh, well - that can be done in followups, anyway.  Applied, with s/filp/file/
> through the entire thing - I really don't like that naming convention.
>
> BTW, am I right assuming that it had been adopted from OS Design and
> Implementation way back when?

Examples of 'filp' for "struct file *" variable naming do seem to go
all the way back to 0.01. And yes, very old naming like that is
presumably influenced by either that or by Bach's unix design book.

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



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux