git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a17f5
)
O_TRUNC open shouldn't fail after file truncation
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 16 Dec 2009 08:54:00 +0000
(
03:54
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 16 Dec 2009 17:16:47 +0000
(12:16 -0500)
* take truncate logics into a helper (handle_truncate())
* rip it out of may_open()
* call it from the only caller of may_open() that might pass
O_TRUNC
* and do that after we'd finished with opening.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
patch
|
blob
|
history
diff --cc
fs/namei.c
Simple merge