Whamcloud - gitweb
adding 2.6-sles10 target and kernel config files for the sles10 kernel
[fs/lustre-release.git] / lustre / kernel_patches / patches / loop-sync-2.4.21-suse.patch
1 --- linux/drivers/block/loop.c.bu       2004-05-11 16:27:23.000000000 -0700
2 +++ linux/drivers/block/loop.c  2004-05-11 16:28:50.000000000 -0700
3 @@ -978,7 +978,7 @@ static int lo_release(struct inode *inod
4  
5         lo = &loop_dev[dev];
6  
7 -       if (!(lo->lo_flags & LO_FLAGS_READ_ONLY)) {
8 +       if (!(lo->lo_flags & LO_FLAGS_READ_ONLY) && lo->lo_device != 0) {
9                 fsync_dev(lo->lo_device);
10                 invalidate_buffers(lo->lo_device);
11         }