]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/open.c
[patch 1/5] vfs: truncate: dont check immutable twice
[linux-2.6-omap-h63xx.git] / fs / open.c
index bb98d2fe809f09fa382a9d6224231206e1161962..b2e4c93aed03ab4d548552588edd9aca664e0880 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -256,7 +256,7 @@ static long do_sys_truncate(const char __user * path, loff_t length)
                goto mnt_drop_write_and_out;
 
        error = -EPERM;
-       if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
+       if (IS_APPEND(inode))
                goto mnt_drop_write_and_out;
 
        error = get_write_access(inode);