Files
mirror_zfs/module/zfs
Chunwei Chen d88895a069 Remove dummy znode from zvol_state
struct zvol_state contains a dummy znode, which is around 1KB on x64,
only for zfs_range_lock. But in reality, other than z_range_lock and
z_range_avl, zfs_range_lock only need znode on regular file, which
means we add 1KB on a structure and gain nothing.

In this patch, we remove the dummy znode for zvol_state. In order to
do that, we also need to refactor zfs_range_lock a bit. We move
z_range_lock and z_range_avl pair out of znode_t to form zfs_rlock_t.
This new struct replaces znode_t as the main handle inside the range
lock functions.

We also add pointers to z_size, z_blksz, and z_max_blksz so range lock
code doesn't depend on znode_t.  This allows non-ZPL consumers like
Lustre to use the range locks with their equivalent znode_t structure.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Boris Protopopov <boris.protopopov@actifio.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4510
2016-05-17 10:29:02 -07:00
..
2014-08-01 14:28:05 -07:00
2015-01-16 14:41:26 -08:00
2016-01-08 15:08:19 -08:00
2016-01-08 20:23:23 -05:00
2015-01-16 14:41:26 -08:00
2016-01-08 15:08:19 -08:00
2016-01-08 15:08:19 -08:00
2013-12-18 16:46:35 -08:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2016-04-21 09:49:25 -07:00
2015-12-22 10:21:33 -08:00
2016-04-21 09:49:25 -07:00
2015-01-16 14:41:26 -08:00
2015-12-30 13:20:12 -08:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2016-05-02 14:27:45 -07:00
2016-01-08 15:08:19 -08:00
2015-01-16 14:41:26 -08:00
2016-01-13 13:55:12 -08:00
2015-01-16 14:41:26 -08:00
2013-10-31 14:58:04 -07:00
2016-04-05 18:54:55 -07:00
2010-08-31 13:41:58 -07:00
2015-09-04 16:08:14 -07:00
2016-04-05 18:54:55 -07:00
2013-10-30 14:51:27 -07:00
2016-05-17 10:29:02 -07:00
2016-05-12 13:36:22 -07:00
2016-01-15 15:33:45 -08:00
2016-05-17 10:29:02 -07:00
2016-05-17 10:29:02 -07:00
2014-08-01 14:28:05 -07:00
2016-03-30 09:30:34 -07:00
2016-04-05 18:54:55 -07:00
2016-04-21 09:49:25 -07:00
2016-05-17 10:29:02 -07:00