summaryrefslogtreecommitdiffstats
path: root/fs/quota/quota_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/quota/quota_tree.h')
-rw-r--r--fs/quota/quota_tree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/quota/quota_tree.h b/fs/quota/quota_tree.h
index a1ab8db81a5..ccc3e71fb1d 100644
--- a/fs/quota/quota_tree.h
+++ b/fs/quota/quota_tree.h
@@ -22,4 +22,10 @@ struct qt_disk_dqdbheader {
#define QT_TREEOFF 1 /* Offset of tree in file in blocks */
+#define q_warn(fmt, args...) \
+do { \
+ if (printk_ratelimit()) \
+ printk(fmt, ## args); \
+} while(0)
+
#endif /* _LINUX_QUOTAIO_TREE_H */