Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "LU-2600 osd-zfs: batched object accounting"
[fs/lustre-release.git]
/
lustre
/
osd-zfs
/
osd_object.c
diff --git
a/lustre/osd-zfs/osd_object.c
b/lustre/osd-zfs/osd_object.c
index
31180c6
..
151ad39
100644
(file)
--- a/
lustre/osd-zfs/osd_object.c
+++ b/
lustre/osd-zfs/osd_object.c
@@
-286,7
+286,7
@@
struct lu_object *osd_object_alloc(const struct lu_env *env,
{
struct osd_object *mo;
- OBD_SLAB_ALLOC_PTR_GFP(mo, osd_object_kmem,
__GFP_IO
);
+ OBD_SLAB_ALLOC_PTR_GFP(mo, osd_object_kmem,
GFP_NOFS
);
if (mo != NULL) {
struct lu_object *l;
@@
-1491,7
+1491,7
@@
static int osd_object_create(const struct lu_env *env, struct dt_object *dt,
db = osd_create_type_f(dof->dof_type)(env, osd, attr, zapid, oh);
if (IS_ERR(db))
- GOTO(out, rc = PTR_ERR(
th
));
+ GOTO(out, rc = PTR_ERR(
db
));
zde->zde_pad = 0;
zde->zde_dnode = db->db_object;
@@
-1751,13
+1751,16
@@
static struct obd_capa *osd_capa_get(const struct lu_env *env,
RETURN(oc);
}
-static int osd_object_sync(const struct lu_env *env, struct dt_object *dt)
+static int osd_object_sync(const struct lu_env *env, struct dt_object *dt,
+ __u64 start, __u64 end)
{
struct osd_device *osd = osd_obj2dev(osd_dt_obj(dt));
ENTRY;
/* XXX: no other option than syncing the whole filesystem until we
- * support ZIL */
+ * support ZIL. If the object tracked the txg that it was last
+ * modified in, it could pass that txg here instead of "0". Maybe
+ * the changes are already committed, so no wait is needed at all? */
txg_wait_synced(dmu_objset_pool(osd->od_objset.os), 0ULL);
RETURN(0);