1. 11 5月, 2007 4 次提交
    • S
      Allow compat_ioctl.c to compile without CONFIG_NET · d9de2622
      Simon Horman 提交于
      A small regression appears to have been introduced in the recent patch
      "cleanup compat ioctl handling", which was included in Linus' tree after
      2.6.20.
      
      siocdevprivate_ioctl() is no longer defined if CONFIG_NET is undefined,
      whereas previously it was a dummy function in this case.
      
      This causes compilation with CONFIG_COMPAT but without CONFIG_NET to fail.
      
      fs/compat_ioctl.c: In function `compat_sys_ioctl':
      fs/compat_ioctl.c:3571: warning: implicit declaration of function `siocdevprivate_ioctl'
      
      Cc: Christoph Hellwig <hch@lst.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d9de2622
    • R
      ocfs2: kobject/kset foobar · c4a7f5eb
      Randy Dunlap 提交于
      Fix gcc warning and Oops that it causes:
      
      fs/ocfs2/cluster/masklog.c:161: warning: assignment from incompatible pointer type
      [ 2776.204120] OCFS2 Node Manager 1.3.3
      [ 2776.211729] BUG: spinlock bad magic on CPU#0, modprobe/4424
      [ 2776.214269]  lock: ffff810021c8fe18, .magic: ffffffff, .owner: /6394416, .owner_cpu: 0
      [ 2776.217864] [ 2776.217865] Call Trace:
      [ 2776.219662]  [<ffffffff803426c8>] spin_bug+0x9e/0xe9
      [ 2776.221921]  [<ffffffff803427bf>] _raw_spin_lock+0x23/0xf9
      [ 2776.224417]  [<ffffffff8051acf4>] _spin_lock+0x9/0xb
      [ 2776.226676]  [<ffffffff8033c3b1>] kobject_shadow_add+0x98/0x1ac
      [ 2776.229367]  [<ffffffff8033c4d0>] kobject_add+0xb/0xd
      [ 2776.231665]  [<ffffffff8033c4df>] kset_add+0xd/0xf
      [ 2776.233845]  [<ffffffff8033c5a6>] kset_register+0x23/0x28
      [ 2776.236309]  [<ffffffff8808ccb7>] :ocfs2_nodemanager:mlog_sys_init+0x68/0x6d
      [ 2776.239518]  [<ffffffff8808ccee>] :ocfs2_nodemanager:o2cb_sys_init+0x32/0x4a
      [ 2776.242726]  [<ffffffff880b80a6>] :ocfs2_nodemanager:init_o2nm+0xa6/0xd5
      [ 2776.245772]  [<ffffffff8025266c>] sys_init_module+0x1471/0x15d2
      [ 2776.248465]  [<ffffffff8033f250>] simple_strtoull+0x0/0xdc
      [ 2776.250959]  [<ffffffff8020948e>] system_call+0x7e/0x83
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Acked-by: NMark Fasheh <mark.fasheh@oracle.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c4a7f5eb
    • D
      AFS: further write support fixes · 5bbf5d39
      David Howells 提交于
      Further fixes for AFS write support:
      
       (1) The afs_send_pages() outer loop must do an extra iteration if it ends
           with 'first == last' because 'last' is inclusive in the page set
           otherwise it fails to send the last page and complete the RxRPC op under
           some circumstances.
      
       (2) Similarly, the outer loop in afs_pages_written_back() must also do an
           extra iteration if it ends with 'first == last', otherwise it fails to
           clear PG_writeback on the last page under some circumstances.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5bbf5d39
    • D
      AFS: write support fixes · b9b1f8d5
      David Howells 提交于
      AFS write support fixes:
      
       (1) Support large files using the 64-bit file access operations if available
           on the server.
      
       (2) Use kmap_atomic() rather than kmap() in afs_prepare_page().
      
       (3) Don't do stuff in afs_writepage() that's done by the caller.
      
      [akpm@linux-foundation.org: fix right shift count >= width of type]
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b9b1f8d5
  2. 10 5月, 2007 26 次提交
  3. 09 5月, 2007 10 次提交