aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/ioctl.c')
-rw-r--r--fs/ext4/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index a569d335f804..60589b60e9b0 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -130,7 +130,7 @@ static long swap_inode_boot_loader(struct super_block *sb,
130 130
131 /* Protect orig inodes against a truncate and make sure, 131 /* Protect orig inodes against a truncate and make sure,
132 * that only 1 swap_inode_boot_loader is running. */ 132 * that only 1 swap_inode_boot_loader is running. */
133 ext4_inode_double_lock(inode, inode_bl); 133 lock_two_nondirectories(inode, inode_bl);
134 134
135 truncate_inode_pages(&inode->i_data, 0); 135 truncate_inode_pages(&inode->i_data, 0);
136 truncate_inode_pages(&inode_bl->i_data, 0); 136 truncate_inode_pages(&inode_bl->i_data, 0);
@@ -205,7 +205,7 @@ static long swap_inode_boot_loader(struct super_block *sb,
205 ext4_inode_resume_unlocked_dio(inode); 205 ext4_inode_resume_unlocked_dio(inode);
206 ext4_inode_resume_unlocked_dio(inode_bl); 206 ext4_inode_resume_unlocked_dio(inode_bl);
207 207
208 ext4_inode_double_unlock(inode, inode_bl); 208 unlock_two_nondirectories(inode, inode_bl);
209 209
210 iput(inode_bl); 210 iput(inode_bl);
211 211