summaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/bind.c
diff options
context:
space:
mode:
authorDavid Howells2015-03-17 23:26:21 +0100
committerAl Viro2015-04-15 21:06:59 +0200
commit466b77bc954c23c5741ea7dd02f20212a72acdb2 (patch)
tree3efb3c39c814d58c11435815b9fa9dedc7035731 /fs/cachefiles/bind.c
parentVFS: fs library helpers: d_inode() annotations (diff)
downloadkernel-qcow2-linux-466b77bc954c23c5741ea7dd02f20212a72acdb2.tar.gz
kernel-qcow2-linux-466b77bc954c23c5741ea7dd02f20212a72acdb2.tar.xz
kernel-qcow2-linux-466b77bc954c23c5741ea7dd02f20212a72acdb2.zip
VFS: fs/cachefiles: d_backing_inode() annotations
Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cachefiles/bind.c')
-rw-r--r--fs/cachefiles/bind.c10
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)
/* check parameters */
ret = -EOPNOTSUPP;
- if (!root->d_inode ||
- !root->d_inode->i_op->lookup ||
- !root->d_inode->i_op->mkdir ||
- !root->d_inode->i_op->setxattr ||
- !root->d_inode->i_op->getxattr ||
+ if (d_is_negative(root) ||
+ !d_backing_inode(root)->i_op->lookup ||
+ !d_backing_inode(root)->i_op->mkdir ||
+ !d_backing_inode(root)->i_op->setxattr ||
+ !d_backing_inode(root)->i_op->getxattr ||
!root->d_sb->s_op->statfs ||
!root->d_sb->s_op->sync_fs)
goto error_unsupported;