commit | 7715b521222b6ebb6e927fa261ed91ed687fe454 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Dec 16 03:54:00 2009 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Dec 16 12:16:47 2009 -0500 |
tree | 33c6f8179d405974ed6763df331f731044c16072 | |
parent | 85a17f552dfe77efb44b971615e4f221a5f28f37 [diff] |
O_TRUNC open shouldn't fail after file truncation * 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>