1. 17 2月, 2015 2 次提交
  2. 09 1月, 2015 1 次提交
  3. 30 10月, 2014 1 次提交
  4. 24 6月, 2014 3 次提交
  5. 04 4月, 2014 4 次提交
  6. 11 2月, 2014 1 次提交
    • X
      ocfs2: check existence of old dentry in ocfs2_link() · 0e048316
      Xue jiufei 提交于
      System call linkat first calls user_path_at(), check the existence of
      old dentry, and then calls vfs_link()->ocfs2_link() to do the actual
      work.  There may exist a race when Node A create a hard link for file
      while node B rm it.
      
               Node A                          Node B
      user_path_at()
        ->ocfs2_lookup(),
      find old dentry exist
                                      rm file, add inode say inodeA
                                      to orphan_dir
      
      call ocfs2_link(),create a
      hard link for inodeA.
      
                                      rm the link, add inodeA to orphan_dir
                                      again
      
      When orphan_scan work start, it calls ocfs2_queue_orphans() to do the
      main work.  It first tranverses entrys in orphan_dir, linking all inodes
      in this orphan_dir to a list look like this:
      
      	inodeA->inodeB->...->inodeA
      
      When tranvering this list, it will fall into loop, calling iput() again
      and again.  And finally trigger BUG_ON(inode->i_state & I_CLEAR).
      Signed-off-by: Njoyce <xuejiufei@huawei.com>
      Reviewed-by: NMark Fasheh <mfasheh@suse.com>
      Cc: Joel Becker <jlbec@evilplan.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0e048316
  7. 28 1月, 2014 1 次提交
  8. 26 1月, 2014 1 次提交
  9. 13 11月, 2013 1 次提交
  10. 04 7月, 2013 3 次提交
  11. 13 6月, 2013 2 次提交
  12. 13 2月, 2013 1 次提交
  13. 14 7月, 2012 2 次提交
  14. 30 5月, 2012 1 次提交
  15. 14 2月, 2012 1 次提交
  16. 04 1月, 2012 4 次提交
  17. 02 11月, 2011 3 次提交
  18. 26 7月, 2011 1 次提交
  19. 20 7月, 2011 1 次提交
  20. 26 5月, 2011 3 次提交
  21. 31 3月, 2011 1 次提交
  22. 23 2月, 2011 1 次提交
  23. 07 3月, 2011 1 次提交
    • T
      ocfs2: Remove EXIT from masklog. · c1e8d35e
      Tao Ma 提交于
      mlog_exit is used to record the exit status of a function.
      But because it is added in so many functions, if we enable it,
      the system logs get filled up quickly and cause too much I/O.
      So actually no one can open it for a production system or even
      for a test.
      
      This patch just try to remove it or change it. So:
      1. if all the error paths already use mlog_errno, it is just removed.
         Otherwise, it will be replaced by mlog_errno.
      2. if it is used to print some return value, it is replaced with
         mlog(0,...).
      mlog_exit_ptr is changed to mlog(0.
      All those mlog(0,...) will be replaced with trace events later.
      Signed-off-by: NTao Ma <boyu.mt@taobao.com>
      c1e8d35e