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
LU-6030 ldiskfs: cleanup ldiskfs_journal_dirty_metadata
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_iam.c
diff --git
a/lustre/osd-ldiskfs/osd_iam.c
b/lustre/osd-ldiskfs/osd_iam.c
index
3277e14
..
bac0084
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_iam.c
+++ b/
lustre/osd-ldiskfs/osd_iam.c
@@
-605,7
+605,7
@@
static int iam_txn_dirty(handle_t *handle,
{
int result;
-
result = ldiskfs_journal_dirty_metadata(handle
, bh);
+
result = ldiskfs_handle_dirty_metadata(handle, NULL
, bh);
if (result != 0)
ldiskfs_std_error(iam_path_obj(path)->i_sb, result);
return result;
@@
-1682,7
+1682,7
@@
iam_new_node(handle_t *h, struct iam_container *c, iam_ptr_t *b, int *e)
--count;
*b = le32_to_cpu(head->iih_blks[count]);
head->iih_count = cpu_to_le16(count);
- *e = ldiskfs_
journal_dirty_metadata(h
, c->ic_idle_bh);
+ *e = ldiskfs_
handle_dirty_metadata(h, inode
, c->ic_idle_bh);
if (*e != 0)
goto fail;
@@
-1706,7
+1706,7
@@
iam_new_node(handle_t *h, struct iam_container *c, iam_ptr_t *b, int *e)
iam_lock_bh(c->ic_root_bh);
*idle_blocks = head->iih_next;
iam_unlock_bh(c->ic_root_bh);
- *e = ldiskfs_
journal_dirty_metadata(h
, c->ic_root_bh);
+ *e = ldiskfs_
handle_dirty_metadata(h, inode
, c->ic_root_bh);
if (*e != 0) {
iam_lock_bh(c->ic_root_bh);
*idle_blocks = cpu_to_le32(*b);
@@
-2068,7
+2068,7
@@
int split_index_node(handle_t *handle, struct iam_path *path,
++ frame;
assert_inv(dx_node_check(path, frame));
bh_new[0] = NULL; /* buffer head is "consumed" */
-
err = ldiskfs_journal_dirty_metadata(handle
, bh2);
+
err = ldiskfs_handle_dirty_metadata(handle, NULL
, bh2);
if (err)
goto journal_error;
do_corr(schedule());
@@
-2100,16
+2100,17
@@
int split_index_node(handle_t *handle, struct iam_path *path,
dxtrace(dx_show_index ("node", frame->entries));
dxtrace(dx_show_index ("node",
((struct dx_node *) bh2->b_data)->entries));
-
err = ldiskfs_journal_dirty_metadata(handle
, bh2);
+
err = ldiskfs_handle_dirty_metadata(handle, NULL
, bh2);
if (err)
goto journal_error;
do_corr(schedule());
- err = ldiskfs_journal_dirty_metadata(handle, parent->bh);
+ err = ldiskfs_handle_dirty_metadata(handle, NULL,
+ parent->bh);
if (err)
goto journal_error;
}
do_corr(schedule());
-
err = ldiskfs_journal_dirty_metadata(handle
, bh);
+
err = ldiskfs_handle_dirty_metadata(handle, NULL
, bh);
if (err)
goto journal_error;
}