[lustre-devel] [PATCH 27/33] lustre: llite: update comment of ll_swap_layouts_close
James Simmons <[email protected]> Sun, 2 Feb 2025 15:46:27 -0500
| Newsgroups | org.lustre.lists.lustre-devel |
|---|---|
| Message-ID | <[email protected]> |
From: Li Xi <[email protected]> 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 <[email protected]> Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50660 Reviewed-by: Oleg Drokin <[email protected]> Reviewed-by: Andreas Dilger <[email protected]> Reviewed-by: Timothy Day <[email protected]> Signed-off-by: James Simmons <[email protected]> --- 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 _______________________________________________ lustre-devel mailing list [email protected] http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org