]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/fs.h
locks: add special return value for asynchronous locks
[linux-2.6-omap-h63xx.git] / include / linux / fs.h
index 4b86f806014c5e8a82f0664f3e5c9acad0c2d0d0..49d8eb7a71be2b89d9148575618d2550018a5141 100644 (file)
@@ -885,6 +885,12 @@ static inline int file_check_writeable(struct file *filp)
 #define FL_CLOSE       64      /* unlock on close */
 #define FL_SLEEP       128     /* A blocking lock */
 
+/*
+ * Special return value from posix_lock_file() and vfs_lock_file() for
+ * asynchronous locking.
+ */
+#define FILE_LOCK_DEFERRED 1
+
 /*
  * The POSIX file lock owner is determined by
  * the "struct files_struct" in the thread group