summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2021-02-11 03:23:04 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2021-03-13 04:15:20 +0100
commit4d66952a2032cf6b65183fc4a8d8039304c70d48 (patch)
tree32ab5eedf7ae87418e9cf314dd357cf95234662d /fs/cifs/cifsproto.h
parentcifs: have ->mkdir() handle race with another client sanely (diff)
downloadlinux-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.h2
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);