lkml.org 
[lkml]   [2008]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: + use-warn-in-fs-proc.patch added to -mm tree
On Fri, Jul 11, 2008 at 11:45:40AM -0700, akpm@linux-foundation.org wrote:
> --- a/fs/proc/generic.c~use-warn-in-fs-proc
> +++ a/fs/proc/generic.c
> @@ -806,12 +806,9 @@ continue_removing:
> if (S_ISDIR(de->mode))
> parent->nlink--;
> de->nlink = 0;
> - if (de->subdir) {
> - printk(KERN_WARNING "%s: removing non-empty directory "
> + WARN(de->subdir, KERN_WARNING "%s: removing non-empty directory "
> "'%s/%s', leaking at least '%s'\n", __func__,
> de->parent->name, de->name, de->subdir->name);
> - WARN_ON(1);
> - }

It would be nice to call it WARN_IF but OK anyway.



\
 
 \ /
  Last update: 2008-07-11 21:59    [W:0.115 / U:0.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site