Re: [ 035/218] vfs: make O_PATH file descriptors usable for fstat()

From: Linus Torvalds
Date: Fri Sep 28 2012 - 19:44:41 EST


On Fri, Sep 28, 2012 at 4:27 PM, Ben Hutchings <ben@xxxxxxxxxxxxxxx> wrote:
>
> The upstream version exchanges fget_light() for fget_raw_light(). Since
> 3.2 (and likewise 3.4) have fget() here, I cherry-picked e994def 'VFS:
> make vfs_fstat() use f[get|put]_light()' before this. Was that a
> bad/good/neutral idea?

Pretty neutral, I don't think it matters. Doing like greg did and just
doing it with fget_raw() (without the cherry-pick) is fine too.

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