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/dir.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/dir.c')
| -rw-r--r-- | fs/gfs2/dir.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index d9fb0ad6cc30..d97ad89955d1 100644 --- a/fs/gfs2/dir.c +++ b/fs/gfs2/dir.c @@ -871,7 +871,7 @@ static struct gfs2_leaf *new_leaf(struct inode *inode, struct buffer_head **pbh,  	struct buffer_head *bh;  	struct gfs2_leaf *leaf;  	struct gfs2_dirent *dent; -	struct timespec tv = current_time(inode); +	struct timespec64 tv = current_time(inode);  	error = gfs2_alloc_blocks(ip, &bn, &n, 0, NULL);  	if (error) @@ -1055,7 +1055,7 @@ static int dir_split_leaf(struct inode *inode, const struct qstr *name)  	/* Change the pointers.  	   Don't bother distinguishing stuffed from non-stuffed.  	   This code is complicated enough already. */ -	lp = kmalloc(half_len * sizeof(__be64), GFP_NOFS); +	lp = kmalloc_array(half_len, sizeof(__be64), GFP_NOFS);  	if (!lp) {  		error = -ENOMEM;  		goto fail_brelse; @@ -1169,7 +1169,7 @@ static int dir_double_exhash(struct gfs2_inode *dip)  	if (IS_ERR(hc))  		return PTR_ERR(hc); -	hc2 = kmalloc(hsize_bytes * 2, GFP_NOFS | __GFP_NOWARN); +	hc2 = kmalloc_array(hsize_bytes, 2, GFP_NOFS | __GFP_NOWARN);  	if (hc2 == NULL)  		hc2 = __vmalloc(hsize_bytes * 2, GFP_NOFS, PAGE_KERNEL); @@ -1596,7 +1596,7 @@ int gfs2_dir_read(struct inode *inode, struct dir_context *ctx,  	error = -ENOMEM;  	/* 96 is max number of dirents which can be stuffed into an inode */ -	darr = kmalloc(96 * sizeof(struct gfs2_dirent *), GFP_NOFS); +	darr = kmalloc_array(96, sizeof(struct gfs2_dirent *), GFP_NOFS);  	if (darr) {  		g.pdent = (const struct gfs2_dirent **)darr;  		g.offset = 0; @@ -1802,7 +1802,7 @@ int gfs2_dir_add(struct inode *inode, const struct qstr *name,  	struct gfs2_inode *ip = GFS2_I(inode);  	struct buffer_head *bh = da->bh;  	struct gfs2_dirent *dent = da->dent; -	struct timespec tv; +	struct timespec64 tv;  	struct gfs2_leaf *leaf;  	int error; @@ -1880,7 +1880,7 @@ int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry)  	const struct qstr *name = &dentry->d_name;  	struct gfs2_dirent *dent, *prev = NULL;  	struct buffer_head *bh; -	struct timespec tv = current_time(&dip->i_inode); +	struct timespec64 tv = current_time(&dip->i_inode);  	/* Returns _either_ the entry (if its first in block) or the  	   previous entry otherwise */ |