|
Lines 1051-1061
nfs_setattr(struct vop_setattr_args *ap)
Link Here
|
| 1051 |
int error = 0; |
1051 |
int error = 0; |
| 1052 |
u_quad_t tsize; |
1052 |
u_quad_t tsize; |
| 1053 |
struct timespec ts; |
1053 |
struct timespec ts; |
|
|
1054 |
vm_object_t obj; |
| 1054 |
|
1055 |
|
| 1055 |
#ifndef nolint |
1056 |
#ifndef nolint |
| 1056 |
tsize = (u_quad_t)0; |
1057 |
tsize = (u_quad_t)0; |
| 1057 |
#endif |
1058 |
#endif |
| 1058 |
|
1059 |
|
|
|
1060 |
ASSERT_VOP_ELOCKED(vp, "nfs_setattr"); |
| 1059 |
/* |
1061 |
/* |
| 1060 |
* Setting of flags and marking of atimes are not supported. |
1062 |
* Setting of flags and marking of atimes are not supported. |
| 1061 |
*/ |
1063 |
*/ |
|
Lines 1105-1110
nfs_setattr(struct vop_setattr_args *ap)
Link Here
|
| 1105 |
NFSLOCKNODE(np); |
1107 |
NFSLOCKNODE(np); |
| 1106 |
tsize = np->n_size; |
1108 |
tsize = np->n_size; |
| 1107 |
NFSUNLOCKNODE(np); |
1109 |
NFSUNLOCKNODE(np); |
|
|
1110 |
if ((obj = vp->v_object) != NULL && |
| 1111 |
vm_object_mightbedirty(obj)) |
| 1112 |
vnode_pager_clean_sync(vp); |
| 1108 |
error = ncl_meta_setsize(vp, td, vap->va_size); |
1113 |
error = ncl_meta_setsize(vp, td, vap->va_size); |
| 1109 |
NFSLOCKNODE(np); |
1114 |
NFSLOCKNODE(np); |
| 1110 |
if (np->n_flag & NMODIFIED) { |
1115 |
if (np->n_flag & NMODIFIED) { |