]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: delete surplus inode NULL check
authorAlan Cox <alan@linux.intel.com>
Wed, 19 Sep 2012 14:49:51 +0000 (15:49 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Sep 2012 02:20:19 +0000 (22:20 -0400)
commited482301c659872f1cd478dbe01ce99d0ad7260d
tree611103e01c1bc579436d376176a69cf4d903c6f5
parent705a69a669ff326591b0dfd3337b4caa8fb813f2
vfs: delete surplus inode NULL check

Each iteration of d_delete we reload inode from dentry->d_inode and
then call S_ISDIR(inode-i_mode), so inode cannot possibly be NULL
shortly afterwards unless something went horribly wrong.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c