From 40c138ac23a7e9a6e956535787446bdef3a7c740 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 30 Mar 2015 09:34:16 +0000 Subject: [PATCH] scst: Kernel 3.19 build fix Signed-off-by: Sebastian Herbszt git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6167 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index de886d340..1436cfdeb 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1363,7 +1363,7 @@ static int vdisk_init_block_integrity(struct scst_vdisk_dev *virt_dev) goto out; } - inode = fd->f_dentry->d_inode; + inode = file_inode(fd); if (!S_ISBLK(inode->i_mode)) { PRINT_ERROR("%s is NOT a block device!", virt_dev->filename);