microblaze: Simplify entry.S - save/restore r3/r4 - ret_from_trap
[sfrench/cifs-2.6.git] / fs / open.c
index b740c4244833f8f3db70b47811799dc8d84c4e40..e17f54454b5076b231e37c023abd31a1237445d5 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -270,7 +270,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;