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-4416 osd-ldiskfs: limit trans size to match reservations
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_handler.c
diff --git
a/lustre/osd-ldiskfs/osd_handler.c
b/lustre/osd-ldiskfs/osd_handler.c
index
5ff2ffe
..
c85d7d5
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_handler.c
+++ b/
lustre/osd-ldiskfs/osd_handler.c
@@
-890,7
+890,7
@@
static int osd_param_is_not_sane(const struct osd_device *dev,
{
struct osd_thandle *oh = container_of(th, typeof(*oh), ot_super);
- return oh->ot_credits > osd_
journal(dev)->j_max_transaction_buffers
;
+ return oh->ot_credits > osd_
transaction_size(dev)
;
}
/*
@@
-1040,7
+1040,7
@@
int osd_trans_start(const struct lu_env *env, struct dt_device *d,
*
* This should be removed when we can calculate the
* credits precisely. */
- oh->ot_credits = osd_
journal(dev)->j_max_transaction_buffers
;
+ oh->ot_credits = osd_
transaction_size(dev)
;
}
/*