All of lore.kernel.org
 help / color / mirror / Atom feed
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 3/8] NFS: Change attribute updates should set NFS_INO_REVAL_PAGECACHE
Date: Thu, 26 Apr 2012 17:03:30 -0400	[thread overview]
Message-ID: <1335474215-29127-3-git-send-email-Trond.Myklebust@netapp.com> (raw)
In-Reply-To: <1335474215-29127-2-git-send-email-Trond.Myklebust@netapp.com>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---
 fs/nfs/inode.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 5f5fb72..a54dbce 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1303,7 +1303,11 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr)
 		if (inode->i_version != fattr->change_attr) {
 			dprintk("NFS: change_attr change on server for file %s/%ld\n",
 					inode->i_sb->s_id, inode->i_ino);
-			invalid |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA|NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL;
+			invalid |= NFS_INO_INVALID_ATTR
+				| NFS_INO_INVALID_DATA
+				| NFS_INO_INVALID_ACCESS
+				| NFS_INO_INVALID_ACL
+				| NFS_INO_REVAL_PAGECACHE;
 			if (S_ISDIR(inode->i_mode))
 				nfs_force_lookup_revalidate(inode);
 			inode->i_version = fattr->change_attr;
-- 
1.7.7.6


  reply	other threads:[~2012-04-26 21:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 21:03 [PATCH 1/8] NFSv4: Fix a typo in NFS4_enc_link_sz Trond Myklebust
2012-04-26 21:03 ` [PATCH 2/8] NFS: Simplify nfs_fhget() Trond Myklebust
2012-04-26 21:03   ` Trond Myklebust [this message]
2012-04-26 21:03     ` [PATCH 4/8] NFSv2/v3: Simulate the change attribute Trond Myklebust
2012-04-26 21:03       ` [PATCH 5/8] NFS: Simplify the cache invalidation code Trond Myklebust
2012-04-26 21:03         ` [PATCH 6/8] NFSv4: Simplify the NFSv4 OPEN compound Trond Myklebust
2012-04-26 21:03           ` [PATCH 7/8] NFSv4: Simplify the NFSv4 CREATE compound Trond Myklebust
2012-04-26 21:03             ` [PATCH 8/8] NFSv4: Simplify the NFSv4 REMOVE, LINK and RENAME compounds Trond Myklebust

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335474215-29127-3-git-send-email-Trond.Myklebust@netapp.com \
    --to=trond.myklebust@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.