]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/utimes.c
[patch 4/4] vfs: immutable inode checking cleanup
[mirror_ubuntu-artful-kernel.git] / fs / utimes.c
index 8e09dbdfd7f555b00ef2612ff4f3cc8e230756f0..dad679d3a1584009b183732bc296a0513ee057d3 100644 (file)
@@ -64,10 +64,6 @@ static int utimes_common(struct path *path, struct timespec *times)
 
        newattrs.ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME;
        if (times) {
-               error = -EPERM;
-                if (IS_APPEND(inode) || IS_IMMUTABLE(inode))
-                       goto mnt_drop_write_and_out;
-
                if (times[0].tv_nsec == UTIME_OMIT)
                        newattrs.ia_valid &= ~ATTR_ATIME;
                else if (times[0].tv_nsec != UTIME_NOW) {