Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2010 16:56:20 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/fs/tmpfs tmpfs_subr.c tmpfs_vfsops.c
Message-ID:  <201001201656.o0KGuUVt087242@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jh          2010-01-20 16:56:20 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/tmpfs         tmpfs_subr.c tmpfs_vfsops.c 
  Log:
  SVN rev 202708 on 2010-01-20 16:56:20Z by jh
  
  - Change the type of nodes_max to u_int and use "%u" format string to
    convert its value. [1]
  - Set default tm_nodes_max to min(pages + 3, UINT32_MAX). It's more
    reasonable than the old four nodes per page (with page size 4096) because
    non-empty regular files always use at least one page. This fixes possible
    overflow in the calculation. [2]
  - Don't allow more than tm_nodes_max nodes allocated in tmpfs_alloc_node().
  
  PR:             kern/138367
  Suggested by:   bde [1], Gleb Kurtsou [2]
  Approved by:    trasz (mentor)
  
  Revision  Changes    Path
  1.26      +1 -1      src/sys/fs/tmpfs/tmpfs_subr.c
  1.24      +9 -6      src/sys/fs/tmpfs/tmpfs_vfsops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001201656.o0KGuUVt087242>