loop.c (46e7eac647b34ed4106a8262f8bedbb90801fadd) | loop.c (1ebe2e5f9d68e94c524aba876f27b945669a7879) |
---|---|
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 * --- 2019 unchanged lines hidden (view full) --- 2028 * 2029 * Note: Global-for-all-devices, set-only-at-init, read-only module 2030 * parameteters like 'max_loop' and 'max_part' make things needlessly 2031 * complicated, are too static, inflexible and may surprise 2032 * userspace tools. Parameters like this in general should be avoided. 2033 */ 2034 if (!part_shift) 2035 disk->flags |= GENHD_FL_NO_PART; | 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 * --- 2019 unchanged lines hidden (view full) --- 2028 * 2029 * Note: Global-for-all-devices, set-only-at-init, read-only module 2030 * parameteters like 'max_loop' and 'max_part' make things needlessly 2031 * complicated, are too static, inflexible and may surprise 2032 * userspace tools. Parameters like this in general should be avoided. 2033 */ 2034 if (!part_shift) 2035 disk->flags |= GENHD_FL_NO_PART; |
2036 disk->flags |= GENHD_FL_EXT_DEVT; | |
2037 atomic_set(&lo->lo_refcnt, 0); 2038 mutex_init(&lo->lo_mutex); 2039 lo->lo_number = i; 2040 spin_lock_init(&lo->lo_lock); 2041 spin_lock_init(&lo->lo_work_lock); 2042 disk->major = LOOP_MAJOR; 2043 disk->first_minor = i << part_shift; 2044 disk->minors = 1 << part_shift; --- 253 unchanged lines hidden --- | 2036 atomic_set(&lo->lo_refcnt, 0); 2037 mutex_init(&lo->lo_mutex); 2038 lo->lo_number = i; 2039 spin_lock_init(&lo->lo_lock); 2040 spin_lock_init(&lo->lo_work_lock); 2041 disk->major = LOOP_MAJOR; 2042 disk->first_minor = i << part_shift; 2043 disk->minors = 1 << part_shift; --- 253 unchanged lines hidden --- |