dir.c (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) | dir.c (b07d5cc93e1b28df47a72c519d09d0a836043613) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * 4 * Copyright (C) 2011 Novell Inc. 5 */ 6 7#include <linux/fs.h> 8#include <linux/namei.h> --- 255 unchanged lines hidden (view full) --- 264{ 265 struct ovl_inode_params oip = { 266 .upperdentry = newdentry, 267 .newinode = inode, 268 }; 269 270 ovl_dir_modified(dentry->d_parent, false); 271 ovl_dentry_set_upper_alias(dentry); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * 4 * Copyright (C) 2011 Novell Inc. 5 */ 6 7#include <linux/fs.h> 8#include <linux/namei.h> --- 255 unchanged lines hidden (view full) --- 264{ 265 struct ovl_inode_params oip = { 266 .upperdentry = newdentry, 267 .newinode = inode, 268 }; 269 270 ovl_dir_modified(dentry->d_parent, false); 271 ovl_dentry_set_upper_alias(dentry); |
272 ovl_dentry_update_reval(dentry, newdentry, 273 DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE); | 272 ovl_dentry_init_reval(dentry, newdentry); |
274 275 if (!hardlink) { 276 /* 277 * ovl_obtain_alias() can be called after ovl_create_real() 278 * and before we get here, so we may get an inode from cache 279 * with the same real upperdentry that is not the inode we 280 * pre-allocated. In this case we will use the cached inode 281 * to instantiate the new dentry. --- 1037 unchanged lines hidden --- | 273 274 if (!hardlink) { 275 /* 276 * ovl_obtain_alias() can be called after ovl_create_real() 277 * and before we get here, so we may get an inode from cache 278 * with the same real upperdentry that is not the inode we 279 * pre-allocated. In this case we will use the cached inode 280 * to instantiate the new dentry. --- 1037 unchanged lines hidden --- |