]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/nfsd/blocklayout.c
Merge branch 'for-5.5/whiskers' into for-linus
[linux.git] / fs / nfsd / blocklayout.c
index 66d4c55eb48e9f1af826c85573b10f4fb55a8fb9..9bbaa671c0799d70d8bad77b47dd7e9eb83fdf4c 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "blocklayoutxdr.h"
 #include "pnfs.h"
+#include "filecache.h"
 
 #define NFSDDBG_FACILITY       NFSDDBG_PNFS
 
@@ -404,7 +405,7 @@ static void
 nfsd4_scsi_fence_client(struct nfs4_layout_stateid *ls)
 {
        struct nfs4_client *clp = ls->ls_stid.sc_client;
-       struct block_device *bdev = ls->ls_file->f_path.mnt->mnt_sb->s_bdev;
+       struct block_device *bdev = ls->ls_file->nf_file->f_path.mnt->mnt_sb->s_bdev;
 
        bdev->bd_disk->fops->pr_ops->pr_preempt(bdev, NFSD_MDS_PR_KEY,
                        nfsd4_scsi_pr_key(clp), 0, true);