aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:26:21 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:59 -0400
commitbb668734c4c960c8f61f017585b323b97e5f47b5 (patch)
treee9c90394fb8342aeccd1b337c2e7949c5c843bec /fs/block_dev.c
parentdf2b1afde178f01c6a1b2ec285ca8bcfd4c66640 (diff)
VFS: assorted 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/block_dev.c')
-rw-r--r--fs/block_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 897ee0503932..79b4fa3b391d 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1716,7 +1716,7 @@ struct block_device *lookup_bdev(const char *pathname)
1716 if (error) 1716 if (error)
1717 return ERR_PTR(error); 1717 return ERR_PTR(error);
1718 1718
1719 inode = path.dentry->d_inode; 1719 inode = d_backing_inode(path.dentry);
1720 error = -ENOTBLK; 1720 error = -ENOTBLK;
1721 if (!S_ISBLK(inode->i_mode)) 1721 if (!S_ISBLK(inode->i_mode))
1722 goto fail; 1722 goto fail;