[PATCH 4/4] fs/inode.c: always take i_lock before calling filesystem's test() method

2012-09-21 Thread Guo Chao
In insert_inode_locked4(), we call test() without i_lock held, it's inconsistent with other places that calling test(). Though this function is only used by reiserfs, in which case i_lock is unnecessary, we should provide test() a consistent locking context. This patch calls test() under the

[PATCH 4/4] fs/inode.c: always take i_lock before calling filesystem's test() method

2012-09-21 Thread Guo Chao
In insert_inode_locked4(), we call test() without i_lock held, it's inconsistent with other places that calling test(). Though this function is only used by reiserfs, in which case i_lock is unnecessary, we should provide test() a consistent locking context. This patch calls test() under the