diff options
Diffstat (limited to 'fs/cachefiles/bind.c')
-rw-r--r-- | fs/cachefiles/bind.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/cachefiles/bind.c b/fs/cachefiles/bind.c index fbb08e97438d..6af790fc3df8 100644 --- a/fs/cachefiles/bind.c +++ b/fs/cachefiles/bind.c | |||
@@ -123,11 +123,11 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache) | |||
123 | 123 | ||
124 | /* check parameters */ | 124 | /* check parameters */ |
125 | ret = -EOPNOTSUPP; | 125 | ret = -EOPNOTSUPP; |
126 | if (!root->d_inode || | 126 | if (d_is_negative(root) || |
127 | !root->d_inode->i_op->lookup || | 127 | !d_backing_inode(root)->i_op->lookup || |
128 | !root->d_inode->i_op->mkdir || | 128 | !d_backing_inode(root)->i_op->mkdir || |
129 | !root->d_inode->i_op->setxattr || | 129 | !d_backing_inode(root)->i_op->setxattr || |
130 | !root->d_inode->i_op->getxattr || | 130 | !d_backing_inode(root)->i_op->getxattr || |
131 | !root->d_sb->s_op->statfs || | 131 | !root->d_sb->s_op->statfs || |
132 | !root->d_sb->s_op->sync_fs) | 132 | !root->d_sb->s_op->sync_fs) |
133 | goto error_unsupported; | 133 | goto error_unsupported; |