patch-2.3.39 linux/drivers/block/loop.c

Next file: linux/drivers/block/md.c
Previous file: linux/drivers/block/ide.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/drivers/block/loop.c linux/drivers/block/loop.c
@@ -643,7 +643,7 @@
 static int lo_release(struct inode *inode, struct file *file)
 {
 	struct loop_device *lo;
-	int	dev, err;
+	int	dev;
 
 	if (!inode)
 		return 0;
@@ -654,7 +654,6 @@
 	dev = MINOR(inode->i_rdev);
 	if (dev >= max_loop)
 		return 0;
-	err = fsync_dev(inode->i_rdev);
 	lo = &loop_dev[dev];
 	if (lo->lo_refcnt <= 0)
 		printk(KERN_ERR "lo_release: refcount(%d) <= 0\n", lo->lo_refcnt);
@@ -665,7 +664,7 @@
 			xfer_funcs[type]->unlock(lo);
 		MOD_DEC_USE_COUNT;
 	}
-	return err;
+	return 0;
 }
 
 static struct block_device_operations lo_fops = {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)