1. 28 4月, 2008 1 次提交
    • P
      SELinux: Made netnode cache adds faster · a639e7ca
      Paul Moore 提交于
      When adding new entries to the network node cache we would walk the entire
      hash bucket to make sure we didn't cross a threshold (done to bound the
      cache size).  This isn't a very quick or elegant solution for something
      which is supposed to be quick-ish so add a counter to each hash bucket to
      track the size of the bucket and eliminate the need to walk the entire
      bucket list on each add.
      Signed-off-by: NPaul Moore <paul.moore@hp.com>
      Signed-off-by: NJames Morris <jmorris@namei.org>
      a639e7ca
  2. 21 4月, 2008 1 次提交
    • E
      SELinux: netnode.c whitespace, syntax, and static declaraction cleanups · 7b6b239c
      Eric Paris 提交于
      This patch changes netnode.c to fix whitespace and syntax issues.  Things that
      are fixed may include (does not not have to include)
      
      whitespace at end of lines
      spaces followed by tabs
      spaces used instead of tabs
      spacing around parenthesis
      locateion of { around struct and else clauses
      location of * in pointer declarations
      removal of initialization of static data to keep it in the right section
      useless {} in if statemetns
      useless checking for NULL before kfree
      fixing of the indentation depth of switch statements
      and any number of other things I forgot to mention
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Signed-off-by: NJames Morris <jmorris@namei.org>
      7b6b239c
  3. 30 1月, 2008 2 次提交