locks: Allow disabling mandatory locking at compile time
[deliverable/linux.git] / fs / locks.c
index 0d2b3267e2a3eb8fefbffb3cd3f58b31fe4ed04d..86c94674ab22dcfb53d6d186c689150de54f78ad 100644 (file)
@@ -1191,6 +1191,7 @@ static int posix_lock_inode_wait(struct inode *inode, struct file_lock *fl)
        return error;
 }
 
+#ifdef CONFIG_MANDATORY_FILE_LOCKING
 /**
  * locks_mandatory_locked - Check for an active lock
  * @file: the file to check
@@ -1289,6 +1290,7 @@ int locks_mandatory_area(int read_write, struct inode *inode,
 }
 
 EXPORT_SYMBOL(locks_mandatory_area);
+#endif /* CONFIG_MANDATORY_FILE_LOCKING */
 
 static void lease_clear_pending(struct file_lock *fl, int arg)
 {
This page took 0.026649 seconds and 5 git commands to generate.