Re: [PATCH v3 3/3] ocfs2: adjust spinlock_t ip_lock protection scope

From: Heming Zhao
Date: Tue Oct 08 2024 - 22:58:22 EST


On 10/8/24 15:18, Joseph Qi wrote:
This is a standalone cleanup, so please send in a separate thread.

Thanks,
Joseph

No problem.

-Heming


On 9/8/24 10:07 PM, Heming Zhao wrote:
Some of the spinlock_t ip_lock protection scopes are incorrect and
should follow the usage in 'struct ocfs2_inode_info'.

Signed-off-by: Heming Zhao <heming.zhao@xxxxxxxx>
Reviewed-by: Su Yue <glass.su@xxxxxxxx>
---
fs/ocfs2/dlmglue.c | 3 ++-
fs/ocfs2/inode.c | 5 +++--
fs/ocfs2/resize.c | 4 ++--
fs/ocfs2/suballoc.c | 2 +-
4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index da78a04d6f0b..4a5900c8dc8f 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -2232,6 +2232,8 @@ static int ocfs2_refresh_inode_from_lvb(struct inode *inode)
else
inode->i_blocks = ocfs2_inode_sector_count(inode);
... ...