diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-06-24 14:50:12 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-07-27 00:53:15 (GMT) |
commit | c82e42da8a6b2f3a85dc4d4278cb8238702f8f64 (patch) | |
tree | 50fb5b52e5c08a20ff4f34f7073e199890f4419e /fs/open.c | |
parent | e6305c43eda10ebfd2ad9e35d6e172ccc7bb3695 (diff) | |
download | linux-fsl-qoriq-c82e42da8a6b2f3a85dc4d4278cb8238702f8f64.tar.xz |
[patch 1/5] vfs: truncate: dont check immutable twice
vfs_permission(MAY_WRITE) already checked for the inode being
immutable, so no need to repeat it.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |