Re: [PATCH 24/24] HWPOISON: show corrupted file info
From: Andi Kleen
Date: Wed Dec 02 2009 - 08:20:54 EST
> + dentry = d_find_alias(inode);
> +
> + if (dentry) {
> + spin_lock(&dentry->d_lock);
> + name = dentry->d_name.name;
> + }
The standard way to do that is d_path()
But the paths are somewhat meaningless without the root.
Better to not print path names for now.
And pgoff should be just a byte offset with a range
I'll skip this one for now.
-Andi
--
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/