Unionfs: don't create whiteouts on rightmost branch
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 20:48:40 +0000 (15:48 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 20 Jun 2014 00:41:09 +0000 (20:41 -0400)
commit8125b60d4ab9517dd371bc6e53f4cb9e14e940c4
treef89e18fffc24729f3d681f90bdfdb720131e391e
parent16d2b8018b160c864225ea022fa5bd6e60fdc64f
Unionfs: don't create whiteouts on rightmost branch

If we are unlinking/rmdir'ing an object on the  rightmost branch, there's no
need to  create a whiteout there: this saves on storage space and inodes.
Also, in the (degenerate) case of having only one branch, this really saves
on whiteouts.

CC: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/unlink.c