aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorFabio Estevam <[email protected]>2012-06-01 00:10:30 +0000
committerMark Brown <[email protected]>2012-06-03 12:14:01 +0000
commit5494a98f451d59f6c05f3f688510e0832445f661 (patch)
tree4df15dff1a3f3c490999c733aff7732ee968a2f9 /fs/jbd2/commit.c
parentregmap: clean up debugfs if regmap_init fails (diff)
downloadkernel-5494a98f451d59f6c05f3f688510e0832445f661.tar.gz
kernel-5494a98f451d59f6c05f3f688510e0832445f661.zip
regmap: Fix the size calculation for map->format.buf_size
The word to be transmitted/received via regmap is composed by the following parts: config->reg_bits config->val_bits config->pad_bits ,so the total size should be calculated by summing up the number of bits of each element and using a DIV_ROUND_UP to return the number of bytes. Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions