patch-2.4.0-test4 linux/fs/hpfs/dir.c
Next file: linux/fs/hpfs/file.c
Previous file: linux/fs/file_table.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Jul 12 21:58:44 2000
- Orig file:
v2.4.0-test3/linux/fs/hpfs/dir.c
- Orig date:
Tue Apr 11 15:09:22 2000
diff -u --recursive --new-file v2.4.0-test3/linux/fs/hpfs/dir.c linux/fs/hpfs/dir.c
@@ -7,11 +7,15 @@
*/
#include "hpfs_fn.h"
+#include <linux/sched.h>
+#include <linux/smp_lock.h>
int hpfs_dir_release(struct inode *inode, struct file *filp)
{
+ lock_kernel();
hpfs_del_pos(inode, &filp->f_pos);
/*hpfs_write_if_changed(inode);*/
+ unlock_kernel();
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)