patch-2.2.19 linux/fs/open.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/nls/nls_koi8-ru.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Mar 25 11:37:38 2001
- Orig file:
v2.2.18/fs/open.c
- Orig date:
Sun Mar 25 11:28:36 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/fs/open.c linux/fs/open.c
@@ -73,7 +73,7 @@
if ((off_t) length < 0)
return -EINVAL;
- down(&inode->i_sem);
+ fs_down(&inode->i_sem);
newattrs.ia_size = length;
newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
error = notify_change(dentry, &newattrs);
@@ -83,7 +83,7 @@
if (inode->i_op && inode->i_op->truncate)
inode->i_op->truncate(inode);
}
- up(&inode->i_sem);
+ fs_up(&inode->i_sem);
return error;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)