Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1735636
| From | Miklos Szeredi <mszeredi@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 03/10] coda: honor AT_STATX_DONT_SYNC |
| Date | 2017-09-20 10:50 +0200 |
| Message-ID | <urIRH-Bk-7@gated-at.bofh.it> (permalink) |
| References | <urIRH-Bk-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The description of this flag says "Don't sync attributes with the server".
In other words: always use the attributes cached in the kernel and don't
send network or local messages to refresh the attributes.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>
---
fs/coda/inode.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/fs/coda/inode.c b/fs/coda/inode.c
index 6058df380cc0..734672b2cbdc 100644
--- a/fs/coda/inode.c
+++ b/fs/coda/inode.c
@@ -255,7 +255,10 @@ static void coda_evict_inode(struct inode *inode)
int coda_getattr(const struct path *path, struct kstat *stat,
u32 request_mask, unsigned int flags)
{
- int err = coda_revalidate_inode(d_inode(path->dentry));
+ int err = 0;
+
+ if (!(flags & AT_STATX_DONT_SYNC))
+ err = coda_revalidate_inode(d_inode(path->dentry));
if (!err)
generic_fillattr(d_inode(path->dentry), stat);
return err;
--
2.5.5
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 03/10] coda: honor AT_STATX_DONT_SYNC Miklos Szeredi <mszeredi@redhat.com> - 2017-09-20 10:50 +0200
Re: [PATCH 03/10] coda: honor AT_STATX_DONT_SYNC Jan Harkes <jaharkes@cs.cmu.edu> - 2017-09-20 22:40 +0200
Re: [PATCH 03/10] coda: honor AT_STATX_DONT_SYNC Miklos Szeredi <mszeredi@redhat.com> - 2017-09-21 14:50 +0200
csiph-web