Thread (22 messages) 22 messages, 5 authors, 2017-01-03

Re: [PATCH 4/6] ubifs: Maintain a parent pointer

From: Marcus Folkesson <marcus.folkesson@gmail.com>
Date: 2016-12-02 09:34:38
Also in: linux-fsdevel, lkml

On Thu, Dec 01, 2016 at 11:02:19PM +0100, Richard Weinberger wrote:
 
+	if (new_dir != old_dir) {
+		fst_inode_ui->parent_inum = new_dir->i_ino;
+		snd_inode_ui->parent_inum = old_dir->i_ino;
+	}
+
 	if (old_dir != new_dir) {
 		if (S_ISDIR(fst_inode->i_mode) && !S_ISDIR(snd_inode->i_mode)) {
 			inc_nlink(new_dir);
Insignificant thing, but use the existing if-statment instead?

Cheers,
Marcus Folkesson
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help