Which inode pointer do I should use?

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

 



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?

-- 

--------------
Diego Woitasen

--
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