Skip to content

Commit c04cc68

Browse files
Zhihao Chengrichardweinberger
authored andcommitted
ubifs: Add comments and debug info for ubifs_xrename()
Just like other operations (eg. ubifs_create, do_rename), add comments and debug information for ubifs_xrename(). Signed-off-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 1b2ba09 commit c04cc68

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

fs/ubifs/dir.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,15 @@ static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry,
15661566

15671567
ubifs_assert(c, fst_inode && snd_inode);
15681568

1569+
/*
1570+
* Budget request settings: changing two direntries, changing the two
1571+
* parent directory inodes.
1572+
*/
1573+
1574+
dbg_gen("dent '%pd' ino %lu in dir ino %lu exchange dent '%pd' ino %lu in dir ino %lu",
1575+
old_dentry, fst_inode->i_ino, old_dir->i_ino,
1576+
new_dentry, snd_inode->i_ino, new_dir->i_ino);
1577+
15691578
err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &fst_nm);
15701579
if (err)
15711580
return err;

0 commit comments

Comments
 (0)