How to safely access inode/dentry obtained from struct page *?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Mon Sep 1 00:10:15 EDT 2014


On Sat, 30 Aug 2014 10:41:16 +0530, Joshi said:
> I am trying to obtain file name at block layer level (above IO scheduler).

Nope.  Won't work.  There is no single unique name for a file.

Consider:

touch a
ln a b

There's now 2 names for the same inode.

And why should the block level care about the file name, anyhow?  It doesn't
even know if it's a file or metadata... or even if there's a filesystem
on the partition at all.....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140901/ca5c6837/attachment.bin 


More information about the Kernelnewbies mailing list