Re: [PATCH V3] fs: allow for more than 2^31 files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robin Holt
Date: Thursday, September 30, 2010 - 1:26 pm

On Tue, Sep 28, 2010 at 05:46:51AM +0200, Eric Dumazet wrote:
...


I _THINK_ we actually want get_max_files to return a long and have
the files_stat_struct definitions be longs.  If we do not have it that
way, we could theoretically open enough files on a single cpu to make
get_nr_files return a negative without overflowing max_files.  That,
of course, would require an insane amount of memory, but I think it is
technically more correct.



With this change, don't we lose the current nr_files value?  I think
you need proc_nr_files to stay as it was.  If you disagree, we should
probably eliminate the definitions for proc_nr_files as I don't believe
they are used anywhere else.


Thanks,
Robin
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH V3] fs: allow for more than 2^31 files, Eric Dumazet, (Mon Sep 27, 8:46 pm)
Re: [PATCH V3] fs: allow for more than 2^31 files, David Miller, (Mon Sep 27, 9:10 pm)
Re: [PATCH V3] fs: allow for more than 2^31 files, Robin Holt, (Thu Sep 30, 1:26 pm)
Re: [PATCH V3] fs: allow for more than 2^31 files, Eric Dumazet, (Thu Sep 30, 1:45 pm)
Re: [PATCH V3] fs: allow for more than 2^31 files, Robin Holt, (Thu Sep 30, 9:34 pm)
Re: [PATCH V3] fs: allow for more than 2^31 files, Eric Dumazet, (Thu Sep 30, 10:03 pm)
[PATCH V4] fs: allow for more than 2^31 files, Eric Dumazet, (Thu Sep 30, 10:29 pm)
Re: [PATCH V4] fs: allow for more than 2^31 files, Robin Holt, (Fri Oct 1, 6:38 am)
[PATCH V4] fs: allow for more than 2^31 files, Eric Dumazet, (Tue Oct 5, 12:32 am)