projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fc7cd0
)
ncpfs: drop vmtruncate
author
Marco Stornelli
<marco.stornelli@gmail.com>
Sat, 15 Dec 2012 10:57:03 +0000
(11:57 +0100)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 20 Dec 2012 23:40:54 +0000
(18:40 -0500)
Removed vmtruncate
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ncpfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/ncpfs/inode.c
b/fs/ncpfs/inode.c
index d7e9fe77188a6869073bae3daa8c5a731d2a1edb..1acdad7fcec7cda8ca5aa9e88b92cce45b960c37 100644
(file)
--- a/
fs/ncpfs/inode.c
+++ b/
fs/ncpfs/inode.c
@@
-976,9
+976,7
@@
int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
goto out;
if (attr->ia_size != i_size_read(inode)) {
- result = vmtruncate(inode, attr->ia_size);
- if (result)
- goto out;
+ truncate_setsize(inode, attr->ia_size);
mark_inode_dirty(inode);
}
}