- patches.fixes/patch-2.6.11-rc1: 2.6.11-rc1.
[linux-flexiantxendom0-3.2.10.git] / fs / open.c
index 95266c0..03a7fbc 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -203,10 +203,9 @@ int do_truncate(struct dentry *dentry, loff_t length)
 
        newattrs.ia_size = length;
        newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
+
        down(&dentry->d_inode->i_sem);
-       down_write(&dentry->d_inode->i_alloc_sem);
        err = notify_change(dentry, &newattrs);
-       up_write(&dentry->d_inode->i_alloc_sem);
        up(&dentry->d_inode->i_sem);
        return err;
 }