git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rebase master to b117
[zfs.git]
/
module
/
zfs
/
include
/
sys
/
dnode.h
diff --git
a/module/zfs/include/sys/dnode.h
b/module/zfs/include/sys/dnode.h
index
be9e569
..
48e4da8
100644
(file)
--- a/
module/zfs/include/sys/dnode.h
+++ b/
module/zfs/include/sys/dnode.h
@@
-98,7
+98,8
@@
enum dnode_dirtycontext {
};
/* Is dn_used in bytes? if not, it's in multiples of SPA_MINBLOCKSIZE */
};
/* Is dn_used in bytes? if not, it's in multiples of SPA_MINBLOCKSIZE */
-#define DNODE_FLAG_USED_BYTES (1<<0)
+#define DNODE_FLAG_USED_BYTES (1<<0)
+#define DNODE_FLAG_USERUSED_ACCOUNTED (1<<1)
typedef struct dnode_phys {
uint8_t dn_type; /* dmu_object_type_t */
typedef struct dnode_phys {
uint8_t dn_type; /* dmu_object_type_t */
@@
-131,10
+132,7
@@
typedef struct dnode {
*/
krwlock_t dn_struct_rwlock;
*/
krwlock_t dn_struct_rwlock;
- /*
- * Our link on dataset's dd_dnodes list.
- * Protected by dd_accounting_mtx.
- */
+ /* Our link on dn_objset->os_dnodes list; protected by os_lock. */
list_node_t dn_link;
/* immutable: */
list_node_t dn_link;
/* immutable: */
@@
-191,6
+189,9
@@
typedef struct dnode {
/* parent IO for current sync write */
zio_t *dn_zio;
/* parent IO for current sync write */
zio_t *dn_zio;
+ /* used in syncing context */
+ dnode_phys_t *dn_oldphys;
+
/* holds prefetch structure */
struct zfetch dn_zfetch;
} dnode_t;
/* holds prefetch structure */
struct zfetch dn_zfetch;
} dnode_t;