OSDN Git Service

drm/amd/display: Add power down display on boot flag
[tomoyo/tomoyo-test1.git] / fs / namei.c
index 0a8c5c2..dede014 100644 (file)
@@ -2331,8 +2331,8 @@ static int path_lookupat(struct nameidata *nd, unsigned flags, struct path *path
        return err;
 }
 
-static int filename_lookup(int dfd, struct filename *name, unsigned flags,
-                          struct path *path, struct path *root)
+int filename_lookup(int dfd, struct filename *name, unsigned flags,
+                   struct path *path, struct path *root)
 {
        int retval;
        struct nameidata nd;
@@ -3460,6 +3460,7 @@ struct dentry *vfs_tmpfile(struct dentry *dentry, umode_t mode, int open_flag)
                inode->i_state |= I_LINKABLE;
                spin_unlock(&inode->i_lock);
        }
+       ima_post_create_tmpfile(inode);
        return child;
 
 out_err: