Re: [PATCH][V2] btrfs: remove redundant inode null check

2016-12-20 Thread David Sterba
On Tue, Dec 20, 2016 at 04:18:37PM +, Colin King wrote: > From: Colin Ian King > > The check for a null inode is redundant since the function > is a callback for exportfs, which will itself crash if > dentry->d_inode or parent->d_inode is NULL. Removing the > null check makes this consistent

[PATCH][V2] btrfs: remove redundant inode null check

2016-12-20 Thread Colin King
From: Colin Ian King The check for a null inode is redundant since the function is a callback for exportfs, which will itself crash if dentry->d_inode or parent->d_inode is NULL. Removing the null check makes this consistent with other file systems. Also remove the redundant null dir check too.