summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust2015-08-05 23:31:58 +0200
committerTrond Myklebust2015-08-12 20:27:23 +0200
commitc8ad8894e92b853df5a766061ee9cde7e10e682f (patch)
tree34c11df15215ae0ad18a69ef82ee26d08c58a7b6 /fs/nfs/pnfs.h
parentpnfs/flexfiles: LAYOUTSTATS ii_count should be ops instead of bytes (diff)
downloadkernel-qcow2-linux-c8ad8894e92b853df5a766061ee9cde7e10e682f.tar.gz
kernel-qcow2-linux-c8ad8894e92b853df5a766061ee9cde7e10e682f.tar.xz
kernel-qcow2-linux-c8ad8894e92b853df5a766061ee9cde7e10e682f.zip
NFSv4.2/pnfs: Use GFP_NOIO for layoutstat reporting in the writeback path
Prevent a potential deadlock. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 3e6ab7bfbabd..738672a0f8da 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -691,10 +691,10 @@ static inline void nfs4_pnfs_v3_ds_connect_unload(void)
#endif /* CONFIG_NFS_V4_1 */
#if IS_ENABLED(CONFIG_NFS_V4_2)
-int pnfs_report_layoutstat(struct inode *inode);
+int pnfs_report_layoutstat(struct inode *inode, gfp_t gfp_flags);
#else
static inline int
-pnfs_report_layoutstat(struct inode *inode)
+pnfs_report_layoutstat(struct inode *inode, gfp_t gfp_flags)
{
return 0;
}