locks.c (6548698f929814375fa5d62ae1db96959b0418c1) | locks.c (c9404c9c392d557a4687c4cbda022b03cb787ce9) |
---|---|
1/* 2 * linux/fs/locks.c 3 * 4 * Provide support for fcntl()'s F_GETLK, F_SETLK, and F_SETLKW calls. 5 * Doug Evans (dje@spiff.uucp), August 07, 1992 6 * 7 * Deadlock detection added. 8 * FIXME: one thing isn't handled yet: --- 1440 unchanged lines hidden (view full) --- 1449 * defined. Note that there is no getlease method; instead, the 1450 * filesystem setlease method should call back to setlease() to 1451 * add a lease to the inode's lease list, where fcntl_getlease() can 1452 * find it. Since fcntl_getlease() only reports whether the current 1453 * task holds a lease, a cluster filesystem need only do this for 1454 * leases held by processes on this node. 1455 * 1456 * There is also no break_lease method; filesystems that | 1/* 2 * linux/fs/locks.c 3 * 4 * Provide support for fcntl()'s F_GETLK, F_SETLK, and F_SETLKW calls. 5 * Doug Evans (dje@spiff.uucp), August 07, 1992 6 * 7 * Deadlock detection added. 8 * FIXME: one thing isn't handled yet: --- 1440 unchanged lines hidden (view full) --- 1449 * defined. Note that there is no getlease method; instead, the 1450 * filesystem setlease method should call back to setlease() to 1451 * add a lease to the inode's lease list, where fcntl_getlease() can 1452 * find it. Since fcntl_getlease() only reports whether the current 1453 * task holds a lease, a cluster filesystem need only do this for 1454 * leases held by processes on this node. 1455 * 1456 * There is also no break_lease method; filesystems that |
1457 * handle their own leases shoud break leases themselves from the | 1457 * handle their own leases should break leases themselves from the |
1458 * filesystem's open, create, and (on truncate) setattr methods. 1459 * 1460 * Warning: the only current setlease methods exist only to disable 1461 * leases in certain cases. More vfs changes may be required to 1462 * allow a full filesystem lease implementation. 1463 */ 1464 1465int vfs_setlease(struct file *filp, long arg, struct file_lock **lease) --- 837 unchanged lines hidden --- | 1458 * filesystem's open, create, and (on truncate) setattr methods. 1459 * 1460 * Warning: the only current setlease methods exist only to disable 1461 * leases in certain cases. More vfs changes may be required to 1462 * allow a full filesystem lease implementation. 1463 */ 1464 1465int vfs_setlease(struct file *filp, long arg, struct file_lock **lease) --- 837 unchanged lines hidden --- |