[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <28fa9c5e0809180246g3af92d31nfee5bfd765a57bb7@mail.gmail.com>
Date: Thu, 18 Sep 2008 17:46:55 +0800
From: "Eugene Teo" <eugeneteo@...nel.sg>
To: "Theodore Ts'o" <tytso@....edu>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
"Eric Sandeen" <sandeen@...hat.com>, linux-ext4@...r.kernel.org
Subject: Re: [PATCH 3/4] ext2: Avoid printk floods in the face of directory corruption
On Sat, Sep 13, 2008 at 11:32 PM, Theodore Ts'o <tytso@....edu> wrote:
[...]
> Eend:
> - p = (ext2_dirent *)(kaddr + offs);
> - ext2_error (sb, "ext2_check_page",
> - "entry in directory #%lu spans the page boundary"
> - "offset=%lu, inode=%lu",
> - dir->i_ino, (page->index<<PAGE_CACHE_SHIFT)+offs,
> - (unsigned long) le32_to_cpu(p->inode));
> + if (!quiet) {
> + p = (ext2_dirent *)(kaddr + offs);
> + ext2_error (sb, "ext2_check_page",
^^^^^^^^^^^^^^^^^^
> + "entry in directory #%lu spans the page boundary"
> + "offset=%lu, inode=%lu",
> + dir->i_ino, (page->index<<PAGE_CACHE_SHIFT)+offs,
> + (unsigned long) le32_to_cpu(p->inode));
Minor issue. Since you are already changing "ext2_check_page" to
__func__, you might as well change it here too.
Thanks, Eugene
--
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