diff options
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index e8c42ceb89ba..de626b3b342f 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -859,7 +859,7 @@ error: | |||
859 | static struct file * | 859 | static struct file * |
860 | v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry, | 860 | v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry, |
861 | struct opendata *od, unsigned flags, umode_t mode, | 861 | struct opendata *od, unsigned flags, umode_t mode, |
862 | bool *created) | 862 | int *opened) |
863 | { | 863 | { |
864 | int err; | 864 | int err; |
865 | u32 perm; | 865 | u32 perm; |
@@ -918,7 +918,7 @@ v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry, | |||
918 | v9inode->writeback_fid = (void *) inode_fid; | 918 | v9inode->writeback_fid = (void *) inode_fid; |
919 | } | 919 | } |
920 | mutex_unlock(&v9inode->v_mutex); | 920 | mutex_unlock(&v9inode->v_mutex); |
921 | filp = finish_open(od, dentry, generic_file_open); | 921 | filp = finish_open(od, dentry, generic_file_open, opened); |
922 | if (IS_ERR(filp)) { | 922 | if (IS_ERR(filp)) { |
923 | err = PTR_ERR(filp); | 923 | err = PTR_ERR(filp); |
924 | goto error; | 924 | goto error; |
@@ -930,7 +930,7 @@ v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry, | |||
930 | v9fs_cache_inode_set_cookie(dentry->d_inode, filp); | 930 | v9fs_cache_inode_set_cookie(dentry->d_inode, filp); |
931 | #endif | 931 | #endif |
932 | 932 | ||
933 | *created = true; | 933 | *opened |= FILE_CREATED; |
934 | out: | 934 | out: |
935 | dput(res); | 935 | dput(res); |
936 | return filp; | 936 | return filp; |