Lines 1246-1252
static void unlock_4_inodes(struct inode *inode1, struct inode *inode2,
Link Here
|
1246 |
mutex_unlock(&ubifs_inode(inode2)->ui_mutex); |
1246 |
mutex_unlock(&ubifs_inode(inode2)->ui_mutex); |
1247 |
mutex_unlock(&ubifs_inode(inode1)->ui_mutex); |
1247 |
mutex_unlock(&ubifs_inode(inode1)->ui_mutex); |
1248 |
} |
1248 |
} |
1249 |
|
1249 |
#include <linux/delay.h> |
1250 |
static int do_rename(struct inode *old_dir, struct dentry *old_dentry, |
1250 |
static int do_rename(struct inode *old_dir, struct dentry *old_dentry, |
1251 |
struct inode *new_dir, struct dentry *new_dentry, |
1251 |
struct inode *new_dir, struct dentry *new_dentry, |
1252 |
unsigned int flags) |
1252 |
unsigned int flags) |
Lines 1423-1429
static int do_rename(struct inode *old_dir, struct dentry *old_dentry,
Link Here
|
1423 |
.dirtied_ino_d = \ |
1423 |
.dirtied_ino_d = \ |
1424 |
ALIGN(ubifs_inode(whiteout)->data_len, 8) }; |
1424 |
ALIGN(ubifs_inode(whiteout)->data_len, 8) }; |
1425 |
|
1425 |
|
|
|
1426 |
pr_err("---- Wait for consume space ---\n"); |
1427 |
msleep(8000); |
1428 |
pr_err("~~~~~~ Begin budget space ~~~~~\n"); |
1426 |
err = ubifs_budget_space(c, &wht_req); |
1429 |
err = ubifs_budget_space(c, &wht_req); |
|
|
1430 |
pr_err("======\n"); |
1427 |
if (err) { |
1431 |
if (err) { |
1428 |
kfree(whiteout_ui->data); |
1432 |
kfree(whiteout_ui->data); |
1429 |
whiteout_ui->data_len = 0; |
1433 |
whiteout_ui->data_len = 0; |