diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /fs/gfs2/rgrp.c | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'fs/gfs2/rgrp.c')
| -rw-r--r-- | fs/gfs2/rgrp.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 8b683917a27e..33abcf29bc05 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c @@ -372,8 +372,8 @@ static u32 gfs2_free_extlen(const struct gfs2_rbm *rrbm, u32 len)  		start = bi->bi_bh->b_data;  		if (bi->bi_clone)  			start = bi->bi_clone; -		end = start + bi->bi_bh->b_size;  		start += bi->bi_offset; +		end = start + bi->bi_len;  		BUG_ON(rbm.offset & 3);  		start += (rbm.offset / GFS2_NBBY);  		bytes = min_t(u32, len / GFS2_NBBY, (end - start)); @@ -2605,8 +2605,9 @@ void gfs2_rlist_alloc(struct gfs2_rgrp_list *rlist, unsigned int state)  {  	unsigned int x; -	rlist->rl_ghs = kmalloc(rlist->rl_rgrps * sizeof(struct gfs2_holder), -				GFP_NOFS | __GFP_NOFAIL); +	rlist->rl_ghs = kmalloc_array(rlist->rl_rgrps, +				      sizeof(struct gfs2_holder), +				      GFP_NOFS | __GFP_NOFAIL);  	for (x = 0; x < rlist->rl_rgrps; x++)  		gfs2_holder_init(rlist->rl_rgd[x]->rd_gl,  				state, 0, |