Re: [PATCH] fs: xfs: Fix a lock-twice and sleep-in-atomic bug in xfs_iget

2017-06-05 Thread Shan Hai
lock(); Seems you are going to double unlock by doing this, since it is unlocked in the xfs_iget_cache_hit. Thanks Shan Hai goto out_error_or_again; + } } else { rcu_read_unlock(); XFS_STATS_INC(mp, xs_ig_missed);

[PATCH 0/1] btrfs: remove an unsed varialbe first_index

2015-09-20 Thread Shan Hai
This patch removes an unused variable from file.c for code clearance purpose. Thanks Shan Hai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.h

[PATCH 1/1] btrfs/file.c: remove an unsed varialbe first_index

2015-09-20 Thread Shan Hai
From: Shan Hai The commit b37392ea86761 ("Btrfs: cleanup unnecessary parameter and variant of prepare_pages()") makes it redundant. Signed-off-by: Shan Hai --- fs/btrfs/file.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index b823fac..b669

[PATCH 0/1] ftrace/ring_buffer: reset reader page after consuming read

2014-04-27 Thread Shan Hai
correct because the trace entries supposed to be changed for the reason the tracer works under overwrite mode by default. Thanks Shan Hai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordo

[PATCH 1/1] ftrace/ring_buffer: reset reader page after consuming read was performed to the page

2014-04-27 Thread Shan Hai
them are updated in the test 1. And the result of test 1 is correct because the trace entries supposed to be changed for the reason the tracer works under overwrite mode by default. Cc: sta...@vger.kernel.org Signed-off-by: Shan Hai --- kernel/trace/ring_buffe