diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-02-11 03:23:04 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-03-13 04:15:20 +0100 |
commit | 4d66952a2032cf6b65183fc4a8d8039304c70d48 (patch) | |
tree | 32ab5eedf7ae87418e9cf314dd357cf95234662d /fs/cifs/cifsproto.h | |
parent | cifs: have ->mkdir() handle race with another client sanely (diff) | |
download | linux-4d66952a2032cf6b65183fc4a8d8039304c70d48.tar.xz linux-4d66952a2032cf6b65183fc4a8d8039304c70d48.zip |
cifs: have cifs_fattr_to_inode() refuse to change type on live inode
... instead of trying to do that in the callers (and missing some,
at that)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 75ce6f742b8d..2a72dc24b00a 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -194,7 +194,7 @@ extern void cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, struct cifs_sb_info *cifs_sb); extern void cifs_dir_info_to_fattr(struct cifs_fattr *, FILE_DIRECTORY_INFO *, struct cifs_sb_info *); -extern void cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr); +extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr); extern struct inode *cifs_iget(struct super_block *sb, struct cifs_fattr *fattr); |