summaryrefslogtreecommitdiff
path: root/fs/dax.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2015-11-03 13:28:41 +1100
committerDave Chinner <david@fromorbit.com>2015-11-03 13:28:41 +1100
commit264e89ad3412ce1e2977e5e807bcf7d20d3b0a59 (patch)
tree53841fc9aed8f419765e41af5879e18d51982ca0 /fs/dax.c
parent2da5c4b05ab55225f5d1fcc8c1c37d1918232bf4 (diff)
parent13ad4fe3e087ab66a140f1e00d98f28aa4e3bb28 (diff)
Merge branch 'xfs-dax-updates' into for-next
Diffstat (limited to 'fs/dax.c')
-rw-r--r--fs/dax.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/dax.c b/fs/dax.c
index 7ae6df7ea1d2..74033ad1bc92 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -29,6 +29,11 @@
#include <linux/uio.h>
#include <linux/vmstat.h>
+/*
+ * dax_clear_blocks() is called from within transaction context from XFS,
+ * and hence this means the stack from this point must follow GFP_NOFS
+ * semantics for all operations.
+ */
int dax_clear_blocks(struct inode *inode, sector_t block, long size)
{
struct block_device *bdev = inode->i_sb->s_bdev;