nfs_commit: use NAC_NOTRUNC when loading an attribute
as we're called holding pages locked.
This commit is contained in:
parent
ef6be1434f
commit
1c77f27a7a
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: nfs_vnops.c,v 1.205 2004/07/08 11:21:35 yamt Exp $ */
|
/* $NetBSD: nfs_vnops.c,v 1.206 2004/07/18 07:41:42 yamt Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
@ -39,7 +39,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.205 2004/07/08 11:21:35 yamt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.206 2004/07/18 07:41:42 yamt Exp $");
|
||||||
|
|
||||||
#include "opt_inet.h"
|
#include "opt_inet.h"
|
||||||
#include "opt_nfs.h"
|
#include "opt_nfs.h"
|
||||||
@ -3201,7 +3201,7 @@ nfs_commit(vp, offset, cnt, procp)
|
|||||||
tl += 2;
|
tl += 2;
|
||||||
*tl = txdr_unsigned(cnt);
|
*tl = txdr_unsigned(cnt);
|
||||||
nfsm_request(np, NFSPROC_COMMIT, procp, np->n_wcred);
|
nfsm_request(np, NFSPROC_COMMIT, procp, np->n_wcred);
|
||||||
nfsm_wcc_data(vp, wccflag, 0);
|
nfsm_wcc_data(vp, wccflag, NAC_NOTRUNC);
|
||||||
if (!error) {
|
if (!error) {
|
||||||
nfsm_dissect(tl, u_int32_t *, NFSX_V3WRITEVERF);
|
nfsm_dissect(tl, u_int32_t *, NFSX_V3WRITEVERF);
|
||||||
simple_lock(&nmp->nm_slock);
|
simple_lock(&nmp->nm_slock);
|
||||||
|
Loading…
Reference in New Issue
Block a user