[lustre-devel] [PATCH 27/33] lustre: llite: update comment of ll_swap_layouts_close
James Simmons
jsimmons at infradead.org
Sun Feb 2 12:46:27 PST 2025
From: Li Xi <lixi at ddn.com>
mdc_close_layout_swap_pack() does not exist, and the lease lock
handle is release in mdc_close_intent_pack(). This patch updates
the comment.
WC-bug-id: https://jira.whamcloud.com/browse/LU-16748
Lustre-commit: cfef0d9d5e708d534 ("LU-16748 llite: update comment of ll_swap_layouts_close")
Signed-off-by: Li Xi <lixi at ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50660
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Reviewed-by: Timothy Day <timday at amazon.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
fs/lustre/llite/file.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/lustre/llite/file.c b/fs/lustre/llite/file.c
index e745dc8c53a5..7899ffdd92fb 100644
--- a/fs/lustre/llite/file.c
+++ b/fs/lustre/llite/file.c
@@ -1324,9 +1324,8 @@ static int ll_swap_layouts_close(struct obd_client_handle *och,
goto out_free_och;
}
- /*
- * Close the file and {swap,merge} layouts between inode & inode2.
- * NB: lease lock handle is released in mdc_close_layout_swap_pack()
+ /* Close the file and {swap,merge} layouts between inode & inode2.
+ * NB: local lease handle is released in mdc_close_intent_pack()
* because we still need it to pack l_remote_handle to MDT.
*/
rc = ll_close_inode_openhandle(inode, och, MDS_CLOSE_LAYOUT_SWAP,
--
2.39.3
More information about the lustre-devel
mailing list