diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-11-27 18:38:53 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-07 22:40:50 +0400 |
commit | 081c0414dcdfd13c4276db30a775a5d0f72ad91a (patch) | |
tree | 159016804499d95239267b764a6b3f394eada4af /fs/cifs/cifsproto.h | |
parent | eb1b3fa5cdb9c27bdec8f262acf757a06588eb2d (diff) | |
download | linux-081c0414dcdfd13c4276db30a775a5d0f72ad91a.tar.xz |
CIFS: Do not permit write to a range mandatory locked with a read lock
We don't need to permit a write to the area locked with a read lock
by any process including the process that issues the write.
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r-- | fs/cifs/cifsproto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 15a8cb66a07b..a152f3645b09 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -186,7 +186,7 @@ extern void cifs_mark_open_files_invalid(struct cifs_tcon *tcon); extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset, __u64 length, __u8 type, struct cifsLockInfo **conf_lock, - bool rw_check); + int rw_check); extern void cifs_add_pending_open(struct cifs_fid *fid, struct tcon_link *tlink, struct cifs_pending_open *open); |