patch-2.4.10 linux/fs/hpfs/inode.c
Next file: linux/fs/inode.c
Previous file: linux/fs/hfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon Sep 10 07:31:25 2001
- Orig file:
v2.4.9/linux/fs/hpfs/inode.c
- Orig date:
Mon Aug 27 12:41:46 2001
diff -u --recursive --new-file v2.4.9/linux/fs/hpfs/inode.c linux/fs/hpfs/inode.c
@@ -300,10 +300,12 @@
{
struct inode *inode = dentry->d_inode;
int error;
- if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size) return -EINVAL;
+ if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size)
+ return -EINVAL;
if (inode->i_sb->s_hpfs_root == inode->i_ino) return -EINVAL;
if ((error = inode_change_ok(inode, attr))) return error;
- inode_setattr(inode, attr);
+ error = inode_setattr(inode, attr);
+ if (error) return error;
hpfs_write_inode(inode);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)