export.c (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) export.c (b07d5cc93e1b28df47a72c519d09d0a836043613)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Overlayfs NFS export support.
4 *
5 * Amir Goldstein <amir73il@gmail.com>
6 *
7 * Copyright (C) 2017-2018 CTERA Networks. All Rights Reserved.
8 */

--- 312 unchanged lines hidden (view full) ---

321 if (lower) {
322 oe->lowerstack->dentry = dget(lower);
323 oe->lowerstack->layer = lowerpath->layer;
324 }
325 dentry->d_fsdata = oe;
326 if (upper_alias)
327 ovl_dentry_set_upper_alias(dentry);
328
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Overlayfs NFS export support.
4 *
5 * Amir Goldstein <amir73il@gmail.com>
6 *
7 * Copyright (C) 2017-2018 CTERA Networks. All Rights Reserved.
8 */

--- 312 unchanged lines hidden (view full) ---

321 if (lower) {
322 oe->lowerstack->dentry = dget(lower);
323 oe->lowerstack->layer = lowerpath->layer;
324 }
325 dentry->d_fsdata = oe;
326 if (upper_alias)
327 ovl_dentry_set_upper_alias(dentry);
328
329 ovl_dentry_update_reval(dentry, upper,
330 DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE);
329 ovl_dentry_init_reval(dentry, upper);
331
332 return d_instantiate_anon(dentry, inode);
333
334nomem:
335 dput(dentry);
336 dentry = ERR_PTR(-ENOMEM);
337out_iput:
338 iput(inode);

--- 539 unchanged lines hidden ---
330
331 return d_instantiate_anon(dentry, inode);
332
333nomem:
334 dput(dentry);
335 dentry = ERR_PTR(-ENOMEM);
336out_iput:
337 iput(inode);

--- 539 unchanged lines hidden ---