Re: Which inode pointer do I should use?

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

 



>On 7/29/07, Diego Woitasen <diego@xxxxxxxxxxxxxxx> wrote:
> Hi,
>         recently I post a patch to remove the lock_kernel() in the
>         ioctl() of drivers/block/loop.c. After that Andrew Morton add a
>         a change where he gets the inode pointer from
>         file->f_mapping->host, needed because loop.c now uses
>         unlocked_ioctl(). Reading the do_ioctl() code in fs/ioctl.c I
>         see that there the inode pointer is get from
>         filp->f_path.dentry->d_inode.
>
>         So, which inode pointer do i should use? Are the the same
>         always?
>
I noticed in there's a post about this question, but no answer. I want
to ask this too.
http://lkml.org/lkml/2007/3/14/325

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux