[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091202132048.GI18989@one.firstfloor.org>
Date: Wed, 2 Dec 2009 14:20:48 +0100
From: Andi Kleen <andi@...stfloor.org>
To: Wu Fengguang <fengguang.wu@...el.com>
Cc: Andi Kleen <andi@...stfloor.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Nick Piggin <npiggin@...e.de>, linux-mm@...ck.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 24/24] HWPOISON: show corrupted file info
> + 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists