View | Details | Raw Unified | Return to bug 276002 | Differences between
and this patch

Collapse All | Expand All

(-)sys/fs/nfsclient/nfs_clvnops.c (-1 / +6 lines)
Lines 1058-1063 nfs_setattr(struct vop_setattr_args *ap) Link Here
1058
	int error = 0;
1058
	int error = 0;
1059
	u_quad_t tsize;
1059
	u_quad_t tsize;
1060
	struct timespec ts;
1060
	struct timespec ts;
1061
	bool do_inval;
1061
1062
1062
#ifndef nolint
1063
#ifndef nolint
1063
	tsize = (u_quad_t)0;
1064
	tsize = (u_quad_t)0;
Lines 1113-1120 nfs_setattr(struct vop_setattr_args *ap) Link Here
1113
			tsize = np->n_size;
1114
			tsize = np->n_size;
1114
			NFSUNLOCKNODE(np);
1115
			NFSUNLOCKNODE(np);
1115
			error = ncl_meta_setsize(vp, td, vap->va_size);
1116
			error = ncl_meta_setsize(vp, td, vap->va_size);
1117
			do_inval = false;
1118
			if (vp->v_object != NULL &&
1119
			    vm_object_mightbedirty(vp->v_object))
1120
				do_inval = true;
1116
			NFSLOCKNODE(np);
1121
			NFSLOCKNODE(np);
1117
 			if (np->n_flag & NMODIFIED) {
1122
 			if (do_inval || (np->n_flag & NMODIFIED) != 0) {
1118
			    tsize = np->n_size;
1123
			    tsize = np->n_size;
1119
			    NFSUNLOCKNODE(np);
1124
			    NFSUNLOCKNODE(np);
1120
			    error = ncl_vinvalbuf(vp, vap->va_size == 0 ?
1125
			    error = ncl_vinvalbuf(vp, vap->va_size == 0 ?

Return to bug 276002