summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2009-09-28 12:35:17 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2009-12-03 11:53:02 +0000
commit86e931a35e93d94e6e91b57cc76456e16d188ea9 (patch)
tree55078897d1c3dfa43fed6458a7721af17362b4a3 /include
parente285c100362762f7440643be637dd332460fdc75 (diff)
downloadop-kernel-dev-86e931a35e93d94e6e91b57cc76456e16d188ea9.zip
op-kernel-dev-86e931a35e93d94e6e91b57cc76456e16d188ea9.tar.gz
VFS: Export dquot_send_warning
Sending a message to userspace in a generic format to warn of events (e.g. quota exceeded) in the quota subsystem is a generically useful feature. This patch makes some minor changes to the send_message function from dquot.c renaming it quota_send_message, moving it to quota.c and exporting it for use by filesystems which do not use the dquot code. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/quota.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 78c4889..ce9a9b2 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -376,6 +376,17 @@ static inline unsigned int dquot_generic_flag(unsigned int flags, int type)
return flags >> _DQUOT_STATE_FLAGS;
}
+#ifdef CONFIG_QUOTA_NETLINK_INTERFACE
+extern void quota_send_warning(short type, unsigned int id, dev_t dev,
+ const char warntype);
+#else
+static inline void quota_send_warning(short type, unsigned int id, dev_t dev,
+ const char warntype)
+{
+ return;
+}
+#endif /* CONFIG_QUOTA_NETLINK_INTERFACE */
+
struct quota_info {
unsigned int flags; /* Flags for diskquotas on this device */
struct mutex dqio_mutex; /* lock device while I/O in progress */
OpenPOWER on IntegriCloud