Re: [PATCH 14/21] FS-Cache: Avoid ENFILE checking for kernel-specific open files

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

 



On Thu, 06 Jul 2006 11:10:53 -0400
Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> wrote:

> --- a/fs/file_table.c
> +++ b/fs/file_table.c
> -	if (get_nr_files() >= files_stat.max_files && !capable(CAP_SYS_ADMIN)) {
> +	if (!(kflags & FKFLAGS_NO_ENFILE) &&
> +	    get_nr_files() >= files_stat.max_files &&
> +	    !capable(CAP_SYS_ADMIN)
> +	    ) {

Somebody's just going to put this back to kernel-style later anyway.  We
might as well get it correct up-front.
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux