1. 21 7月, 2008 37 次提交
  2. 18 7月, 2008 3 次提交
    • J
      configfs: Allow ->make_item() and ->make_group() to return detailed errors. · a6795e9e
      Joel Becker 提交于
      The configfs operations ->make_item() and ->make_group() currently
      return a new item/group.  A return of NULL signifies an error.  Because
      of this, -ENOMEM is the only return code bubbled up the stack.
      
      Multiple folks have requested the ability to return specific error codes
      when these operations fail.  This patch adds that ability by changing the
      ->make_item/group() ops to return ERR_PTR() values.  These errors are
      bubbled up appropriately.  NULL returns are changed to -ENOMEM for
      compatibility.
      
      Also updated are the in-kernel users of configfs.
      
      This is a rework of reverted commit 11c3b792.
      Signed-off-by: NJoel Becker <joel.becker@oracle.com>
      a6795e9e
    • J
      Revert "configfs: Allow ->make_item() and ->make_group() to return detailed errors." · f89ab861
      Joel Becker 提交于
      This reverts commit 11c3b792.  The code
      will move to PTR_ERR().
      Signed-off-by: NJoel Becker <joel.becker@oracle.com>
      f89ab861
    • L
      Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2 · 5b664cb2
      Linus Torvalds 提交于
      * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
        [PATCH] ocfs2: fix oops in mmap_truncate testing
        configfs: call drop_link() to cleanup after create_link() failure
        configfs: Allow ->make_item() and ->make_group() to return detailed errors.
        configfs: Fix failing mkdir() making racing rmdir() fail
        configfs: Fix deadlock with racing rmdir() and rename()
        configfs: Make configfs_new_dirent() return error code instead of NULL
        configfs: Protect configfs_dirent s_links list mutations
        configfs: Introduce configfs_dirent_lock
        ocfs2: Don't snprintf() without a format.
        ocfs2: Fix CONFIG_OCFS2_DEBUG_FS #ifdefs
        ocfs2/net: Silence build warnings on sparc64
        ocfs2: Handle error during journal load
        ocfs2: Silence an error message in ocfs2_file_aio_read()
        ocfs2: use simple_read_from_buffer()
        ocfs2: fix printk format warnings with OCFS2_FS_STATS=n
        [PATCH 2/2] ocfs2: Instrument fs cluster locks
        [PATCH 1/2] ocfs2: Add CONFIG_OCFS2_FS_STATS config option
      5b664cb2