Whamcloud - gitweb
LU-9740 ldiskfs: more credits for non-append write 47/27947/2
authorFan Yong <fan.yong@intel.com>
Thu, 6 Jul 2017 00:49:32 +0000 (08:49 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:29:09 +0000 (03:29 +0000)
commitc668a8d405a9d8819bf9b96e0c610ccc5353d77d
tree0bda7f02dd9656236f491413d5d330e0759eba25
parent11670b4c5e7014e2092bfa7ca6ba96ecca5d9d4e
LU-9740 ldiskfs: more credits for non-append write

As code comment explained: for not append write, the split
may need to modify existing blocks moving entries into the
new ones. That needs more journal credits. The old logic
handled it as append case by typo.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I277f144ec056bb2f07ffd5e5ce19d9a6eee8e0ef
Reviewed-on: https://review.whamcloud.com/27947
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/osd-ldiskfs/osd_io.c