1__BREAK_LEASE(9)                 The Linux VFS                __BREAK_LEASE(9)
2
3
4

NAME

6       __break_lease - revoke all outstanding leases on file
7

SYNOPSIS

9       int __break_lease(struct inode * inode, unsigned int mode,
10                         unsigned int type);
11

ARGUMENTS

13       inode
14           the inode of the file to return
15
16       mode
17           O_RDONLY: break only write leases; O_WRONLY or O_RDWR: break all
18           leases
19
20       type
21           FL_LEASE: break leases and delegations; FL_DELEG: break only
22           delegations
23

DESCRIPTION

25       break_lease (inlined for speed) has checked there already is at least
26       some kind of lock (maybe a lease) on this file. Leases are broken on a
27       call to open or truncate. This function can sleep unless you specified
28       O_NONBLOCK to your open.
29
31Kernel Hackers Manual 3.10         June 2019                  __BREAK_LEASE(9)
Impressum