->atomic_open() prototype change - pass int * instead of bool *
[deliverable/linux.git] / fs / open.c
index 937f4ec201809722a2b13cc6cd6dfbf00345f715..89589bd3993cacce7e2de75ead8f79cce4240730 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -782,7 +782,8 @@ static struct file *__dentry_open(struct dentry *dentry, struct vfsmount *mnt,
  * filesystem callback is substituted.
  */
 struct file *finish_open(struct opendata *od, struct dentry *dentry,
-                        int (*open)(struct inode *, struct file *))
+                        int (*open)(struct inode *, struct file *),
+                        int *opened)
 {
        struct file *res;
 
@@ -790,8 +791,10 @@ struct file *finish_open(struct opendata *od, struct dentry *dentry,
        dget(dentry);
 
        res = do_dentry_open(dentry, od->mnt, od->filp, open, current_cred());
-       if (!IS_ERR(res))
+       if (!IS_ERR(res)) {
+               *opened |= FILE_OPENED;
                od->filp = NULL;
+       }
 
        return res;
 }
This page took 0.028788 seconds and 5 git commands to generate.