mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
locks: add locks_move_blocks in posix_lock_inode
We forget to call locks_move_blocks in posix_lock_inode when try to process same owner and different types. Signed-off-by: yangerkun <yangerkun@huawei.com> Signed-off-by: Jeff Layton <jlayton@kernel.org>
This commit is contained in:
parent
3d77e6a880
commit
5ef1596813
1 changed files with 1 additions and 0 deletions
|
@ -1282,6 +1282,7 @@ static int posix_lock_inode(struct inode *inode, struct file_lock *request,
|
|||
if (!new_fl)
|
||||
goto out;
|
||||
locks_copy_lock(new_fl, request);
|
||||
locks_move_blocks(new_fl, request);
|
||||
request = new_fl;
|
||||
new_fl = NULL;
|
||||
locks_insert_lock_ctx(request, &fl->fl_list);
|
||||
|
|
Loading…
Add table
Reference in a new issue