1. 10 1月, 2015 3 次提交
    • J
      f2fs: fix wrong condition check to trigger f2fs_sync_fs · 88a70a69
      Jaegeuk Kim 提交于
      If there is not enough available memory, we need to trigger f2fs_sync_fs.
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      88a70a69
    • J
      f2fs: remove checking dirty_exceed · cd52b636
      Jaegeuk Kim 提交于
      We don't need to force to write dirty_exceeded for f2fs_balance_fs_bg.
      This flag was only meaningful to write bypassing conditions.
      Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
      cd52b636
    • L
      Merge branch 'akpm' (patches from Andrew) · b3d574ae
      Linus Torvalds 提交于
      Merge misc fixes from Andrew Morton:
       "12 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        mm, vmscan: prevent kswapd livelock due to pfmemalloc-throttled process being killed
        memcg: fix destination cgroup leak on task charges migration
        mm: memcontrol: switch soft limit default back to infinity
        mm/debug_pagealloc: remove obsolete Kconfig options
        vfs: renumber FMODE_NONOTIFY and add to uniqueness check
        arch/blackfin/mach-bf533/boards/stamp.c: add linux/delay.h
        ocfs2: fix the wrong directory passed to ocfs2_lookup_ino_from_name() when link file
        MAINTAINERS: update rydberg's addresses
        mm: protect set_page_dirty() from ongoing truncation
        mm: prevent endless growth of anon_vma hierarchy
        exit: fix race between wait_consider_task() and wait_task_zombie()
        ocfs2: remove bogus check in dlm_process_recovery_data
      b3d574ae
  2. 09 1月, 2015 20 次提交
  3. 08 1月, 2015 1 次提交
    • P
      assoc_array: Include rcupdate.h for call_rcu() definition · 990428b8
      Pranith Kumar 提交于
      Include rcupdate.h header to provide call_rcu() definition. This was implicitly
      being provided by slab.h file which include srcu.h somewhere in its include
      hierarchy which in-turn included rcupdate.h.
      
      Lately, tinification effort added support to remove srcu entirely because of
      which we are encountering build errors like
      
      lib/assoc_array.c: In function 'assoc_array_apply_edit':
      lib/assoc_array.c:1426:2: error: implicit declaration of function 'call_rcu' [-Werror=implicit-function-declaration]
      cc1: some warnings being treated as errors
      
      Fix these by including rcupdate.h explicitly.
      Signed-off-by: NPranith Kumar <bobby.prani@gmail.com>
      Reported-by: NScott Wood <scottwood@freescale.com>
      990428b8
  4. 07 1月, 2015 14 次提交
  5. 06 1月, 2015 2 次提交
    • M
      virtio_pci: document why we defer kfree · a1eb03f5
      Michael S. Tsirkin 提交于
      The reason we defer kfree until release function is because it's a
      general rule for kobjects: kfree of the reference counter itself is only
      legal in the release function.
      
      Previous patch didn't make this clear, document this in code.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      a1eb03f5
    • S
      virtio_pci: defer kfree until release callback · 63bd62a0
      Sasha Levin 提交于
      A struct device which has just been unregistered can live on past the
      point at which a driver decides to drop it's initial reference to the
      kobject gained on allocation.
      
      This implies that when releasing a virtio device, we can't free a struct
      virtio_device until the underlying struct device has been released,
      which might not happen immediately on device_unregister().
      
      Unfortunately, this is exactly what virtio pci does:
      it has an empty release callback, and frees memory immediately
      after unregistering the device.
      
      This causes an easy to reproduce crash if CONFIG_DEBUG_KOBJECT_RELEASE
      it enabled.
      
      To fix, free the memory only once we know the device is gone in the release
      callback.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NSasha Levin <sasha.levin@oracle.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      63bd62a0