We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519be98 commit a07d38aCopy full SHA for a07d38a
fs/smb/client/file.c
@@ -133,6 +133,11 @@ static void cifs_issue_write(struct netfs_io_subrequest *subreq)
133
goto out;
134
}
135
136
+static void cifs_netfs_invalidate_cache(struct netfs_io_request *wreq)
137
+{
138
+ cifs_invalidate_cache(wreq->inode, 0);
139
+}
140
+
141
/*
142
* Split the read up according to how many credits we can get for each piece.
143
* It's okay to sleep here if we need to wait for more credit to become
@@ -337,6 +342,7 @@ const struct netfs_request_ops cifs_req_ops = {
337
342
.begin_writeback = cifs_begin_writeback,
338
343
.prepare_write = cifs_prepare_write,
339
344
.issue_write = cifs_issue_write,
345
+ .invalidate_cache = cifs_netfs_invalidate_cache,
340
346
};
341
347
348
0 commit comments