1. 07 2月, 2008 6 次提交
    • M
      taskstats scaled time cleanup · 06b8e878
      Michael Neuling 提交于
      This moves the ability to scale cputime into generic code.  This allows us
      to fix the issue in kernel/timer.c (noticed by Balbir) where we could only
      add an unscaled value to the scaled utime/stime.
      
      This adds a cputime_to_scaled function.  As before, the POWERPC version
      does the scaling based on the last SPURR/PURR ratio calculated.  The
      generic and s390 (only other arch to implement asm/cputime.h) versions are
      both NOPs.
      
      Also moves the SPURR and PURR snapshots closer.
      Signed-off-by: NMichael Neuling <mikey@neuling.org>
      Cc: Jay Lan <jlan@engr.sgi.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      06b8e878
    • J
      riscom8: fix SMP brokenness · d9afa435
      Jeff Garzik 提交于
      After analyzing the elements that save_flags/cli/sti/restore_flags were
      protecting, convert their usages to a global spinlock (the easiest and
      most obvious next-step).  There were some usages of flags being
      intentionally cached, because the code already knew the state of
      interrupts.  These have been taken into account.
      
      This allows us to remove CONFIG_BROKEN_ON_SMP.  Completely untested.
      
      [akpm@linux-foundation.org: use DEFINE_SPINLOCK]
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d9afa435
    • Y
      A potential bug in inotify_user.c · 1c17d18e
      Yan Zheng 提交于
      Following comment is at fs/inotify_user.c:287
      /* coalescing: drop this event if it is a dupe of the previous */
      
      I think the previous event in the comment should be the last event in the
      link list.  But inotify_dev_get_event return the first event in the list.
      In addition, it doesn't check whether the list is empty
      
      Signed-off-by: Yan Zheng<yanzheng@21cn.com>
      Acked-by: NRobert Love <rlove@rlove.org>
      Cc: John McCutchan <ttb@tentacle.dhs.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1c17d18e
    • J
      fs/fat/: refine chmod checks · 19c561a6
      Jan Engelhardt 提交于
      Prohibit mode changes in non-quiet mode that cannot be stored reliably with
      the on-disk format.
      
      Suppose a vfat filesystem is mounted with umask=0 and [not-quiet].  Then
      all files will have mode 0777.  Trying to change the owner will fail,
      because fat does not know about owners or groups.  chmod 0770, on the other
      hand, will succeed, even though fat does not know about the permission
      triplet [user/group/other].
      
      So this patch changes fat's not-quiet behavior so that only UNIX modes are
      accepted that can be mapped lossless between the fat disk format and the
      local system.  There is only one attribute, and that is the readonly
      attribute, which is mapped to the UNIX write permission bit(s).  chmod 0555
      is therefore valid (taking away the +w bits <=> setting the readonly
      attribute).  Since chmod 0775 and chmod 0755 is an ambiguous case as to
      whether to set or clear the readonly bit, these modes are also denied.
      
      In quiet mode, chmod and chown will continue to "succeed" as they did
      before, meaning that a subsequent stat() will temporarily return the new
      mode as long as the inode is not reread from disk, and chown will silently
      do nothing, not even return the new uid/gid in stat().
      Signed-off-by: NJan Engelhardt <jengelh@computergmbh.de>
      Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      19c561a6
    • A
      geode lists are subscriber only · 20292bc2
      Alan Cox 提交于
      This gave me bounces and moans when chasing CS5536 so document it.
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      20292bc2
    • A
      fix ! versus & precedence in various places · eaa0ff15
      Alexey Dobriyan 提交于
      Fix various instances of
      
      	if (!expr & mask)
      
      which should probably have been
      
      	if (!(expr & mask))
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Peter Osterlund <petero2@telia.com>
      Cc: Karsten Keil <kkeil@suse.de>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Mark Fasheh <mark.fasheh@oracle.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      eaa0ff15
  2. 06 2月, 2008 34 次提交