loop.c (b22364c8eec89e6b0c081a237f3b6348df87796f) | loop.c (f98393a64ca1392130724c3acb4e3f325801d2b6) |
---|---|
1/* 2 * linux/drivers/block/loop.c 3 * 4 * Written by Theodore Ts'o, 3/29/93 5 * 6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is 7 * permitted under the GNU General Public License. 8 * --- 819 unchanged lines hidden (view full) --- 828 return 0; 829 830out_clr: 831 lo->lo_thread = NULL; 832 lo->lo_device = NULL; 833 lo->lo_backing_file = NULL; 834 lo->lo_flags = 0; 835 set_capacity(disks[lo->lo_number], 0); | 1/* 2 * linux/drivers/block/loop.c 3 * 4 * Written by Theodore Ts'o, 3/29/93 5 * 6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is 7 * permitted under the GNU General Public License. 8 * --- 819 unchanged lines hidden (view full) --- 828 return 0; 829 830out_clr: 831 lo->lo_thread = NULL; 832 lo->lo_device = NULL; 833 lo->lo_backing_file = NULL; 834 lo->lo_flags = 0; 835 set_capacity(disks[lo->lo_number], 0); |
836 invalidate_bdev(bdev, 0); | 836 invalidate_bdev(bdev); |
837 bd_set_size(bdev, 0); 838 mapping_set_gfp_mask(mapping, lo->old_gfp_mask); 839 lo->lo_state = Lo_unbound; 840 out_putf: 841 fput(file); 842 out: 843 /* This is safe: open() is still holding a reference. */ 844 module_put(THIS_MODULE); --- 67 unchanged lines hidden (view full) --- 912 lo->lo_offset = 0; 913 lo->lo_sizelimit = 0; 914 lo->lo_encrypt_key_size = 0; 915 lo->lo_flags = 0; 916 lo->lo_thread = NULL; 917 memset(lo->lo_encrypt_key, 0, LO_KEY_SIZE); 918 memset(lo->lo_crypt_name, 0, LO_NAME_SIZE); 919 memset(lo->lo_file_name, 0, LO_NAME_SIZE); | 837 bd_set_size(bdev, 0); 838 mapping_set_gfp_mask(mapping, lo->old_gfp_mask); 839 lo->lo_state = Lo_unbound; 840 out_putf: 841 fput(file); 842 out: 843 /* This is safe: open() is still holding a reference. */ 844 module_put(THIS_MODULE); --- 67 unchanged lines hidden (view full) --- 912 lo->lo_offset = 0; 913 lo->lo_sizelimit = 0; 914 lo->lo_encrypt_key_size = 0; 915 lo->lo_flags = 0; 916 lo->lo_thread = NULL; 917 memset(lo->lo_encrypt_key, 0, LO_KEY_SIZE); 918 memset(lo->lo_crypt_name, 0, LO_NAME_SIZE); 919 memset(lo->lo_file_name, 0, LO_NAME_SIZE); |
920 invalidate_bdev(bdev, 0); | 920 invalidate_bdev(bdev); |
921 set_capacity(disks[lo->lo_number], 0); 922 bd_set_size(bdev, 0); 923 mapping_set_gfp_mask(filp->f_mapping, gfp); 924 lo->lo_state = Lo_unbound; 925 fput(filp); 926 /* This is safe: open() is still holding a reference. */ 927 module_put(THIS_MODULE); 928 return 0; --- 571 unchanged lines hidden --- | 921 set_capacity(disks[lo->lo_number], 0); 922 bd_set_size(bdev, 0); 923 mapping_set_gfp_mask(filp->f_mapping, gfp); 924 lo->lo_state = Lo_unbound; 925 fput(filp); 926 /* This is safe: open() is still holding a reference. */ 927 module_put(THIS_MODULE); 928 return 0; --- 571 unchanged lines hidden --- |