projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git]
/
fs
/
cifs
/
smb2ops.c
diff --git
a/fs/cifs/smb2ops.c
b/fs/cifs/smb2ops.c
index
2dfd0d8
..
ddc0e8f
100644
(file)
--- a/
fs/cifs/smb2ops.c
+++ b/
fs/cifs/smb2ops.c
@@
-3590,6
+3590,7
@@
static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon,
return rc;
}
return rc;
}
+ filemap_invalidate_lock(inode->i_mapping);
/*
* We implement the punch hole through ioctl, so we need remove the page
* caches first, otherwise the data may be inconsistent with the server.
/*
* We implement the punch hole through ioctl, so we need remove the page
* caches first, otherwise the data may be inconsistent with the server.
@@
-3607,6
+3608,7
@@
static long smb3_punch_hole(struct file *file, struct cifs_tcon *tcon,
sizeof(struct file_zero_data_information),
CIFSMaxBufSize, NULL, NULL);
free_xid(xid);
sizeof(struct file_zero_data_information),
CIFSMaxBufSize, NULL, NULL);
free_xid(xid);
+ filemap_invalidate_unlock(inode->i_mapping);
return rc;
}
return rc;
}