mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Switch may_open() and break_lease() to passing O_...
... instead of mixing FMODE_ and O_ Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
d208bbdda9
commit
8737c9305b
8 changed files with 18 additions and 21 deletions
|
|
@ -271,7 +271,7 @@ static long do_sys_truncate(const char __user *pathname, loff_t length)
|
|||
* Make sure that there are no leases. get_write_access() protects
|
||||
* against the truncate racing with a lease-granting setlease().
|
||||
*/
|
||||
error = break_lease(inode, FMODE_WRITE);
|
||||
error = break_lease(inode, O_WRONLY);
|
||||
if (error)
|
||||
goto put_write_and_out;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue