projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6305c4
)
[patch 1/5] vfs: truncate: dont check immutable twice
author
Miklos Szeredi
<mszeredi@suse.cz>
Tue, 24 Jun 2008 14:50:12 +0000
(16:50 +0200)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 27 Jul 2008 00:53:15 +0000
(20:53 -0400)
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>
fs/open.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/open.c
b/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);