copy_up.c (23f0ab13eaa69b4a351184cbec448be2aad3a3a9) copy_up.c (55acc6618259c8ff0a400a131f0f4b613e96010a)
1/*
2 *
3 * Copyright (C) 2011 Novell Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
8 */

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

467 err = ovl_install_temp(c, temp, &newdentry);
468 inode_unlock(udir);
469 } else {
470 err = ovl_install_temp(c, temp, &newdentry);
471 }
472 if (err)
473 goto out_cleanup;
474
1/*
2 *
3 * Copyright (C) 2011 Novell Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
8 */

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

467 err = ovl_install_temp(c, temp, &newdentry);
468 inode_unlock(udir);
469 } else {
470 err = ovl_install_temp(c, temp, &newdentry);
471 }
472 if (err)
473 goto out_cleanup;
474
475 ovl_dentry_set_upper_alias(c->dentry);
475 ovl_inode_update(d_inode(c->dentry), newdentry);
476out:
477 dput(temp);
478 return err;
479
480out_cleanup:
481 if (!c->tmpfile)
482 ovl_cleanup(d_inode(c->workdir), temp);

--- 132 unchanged lines hidden ---
476 ovl_inode_update(d_inode(c->dentry), newdentry);
477out:
478 dput(temp);
479 return err;
480
481out_cleanup:
482 if (!c->tmpfile)
483 ovl_cleanup(d_inode(c->workdir), temp);

--- 132 unchanged lines hidden ---