Re: VFS: file-max limit 50044 reached

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    > --- a/fs/file_table.c
    > +++ b/fs/file_table.c
    > @@ -39,21 +39,9 @@ void filp_ctor(void * objp, struct kmem_
    >  {
    >  	if ((cflags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) ==
    >  	    SLAB_CTOR_CONSTRUCTOR) {
    > -		unsigned long flags;
    > -		spin_lock_irqsave(&filp_count_lock, flags);
    > -		files_stat.nr_files++;
    > -		spin_unlock_irqrestore(&filp_count_lock, flags);
    >  	}
    >  }

Am I missing something?  Why not delete the whole filp_ctor() function
rather than just the then clause of the if()?

 - R.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux