patch-2.3.39 linux/drivers/block/paride/pf.c
Next file: linux/drivers/block/ps2esdi.c
Previous file: linux/drivers/block/paride/pd.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sat Jan 8 17:41:16 2000
- Orig file:
v2.3.38/linux/drivers/block/paride/pf.c
- Orig date:
Fri Jan 7 19:13:21 2000
diff -u --recursive --new-file v2.3.38/linux/drivers/block/paride/pf.c linux/drivers/block/paride/pf.c
@@ -447,8 +447,6 @@
{ kdev_t devp;
int unit;
- struct super_block *sb;
-
devp = inode->i_rdev;
unit = DEVICE_NR(devp);
@@ -457,15 +455,8 @@
PF.access--;
- if (!PF.access) {
- fsync_dev(devp);
-
- sb = get_super(devp);
- if (sb) invalidate_inodes(sb);
-
- invalidate_buffers(devp);
- if (PF.removable) pf_lock(unit,0);
- }
+ if (!PF.access && PF.removable)
+ pf_lock(unit,0);
MOD_DEC_USE_COUNT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)