]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/fs.h
locks: fix setlease methods to free passed-in lock
[net-next-2.6.git] / include / linux / fs.h
index 4d07902bc50c0e11dff997ffa16c4aa6e449c214..1eb29399a4ff4b82f00257e3c03090015c00060a 100644 (file)
@@ -1129,6 +1129,7 @@ extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg);
 extern int fcntl_getlease(struct file *filp);
 
 /* fs/locks.c */
+void locks_free_lock(struct file_lock *fl);
 extern void locks_init_lock(struct file_lock *);
 extern struct file_lock * locks_alloc_lock(void);
 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
@@ -1867,6 +1868,7 @@ extern int current_umask(void);
 /* /sys/fs */
 extern struct kobject *fs_kobj;
 
+#define MAX_RW_COUNT (INT_MAX & PAGE_CACHE_MASK)
 extern int rw_verify_area(int, struct file *, loff_t *, size_t);
 
 #define FLOCK_VERIFY_READ  1