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>
Sun, 24 Nov 2013 19:21:59 +0000 (14:21 -0500)
commitda18ebe1c685d430fbef021e701962e4ac9fa640
tree2fd63aa703f37b0ecccba14416bb613d40f3061b
parent216d9080e33ce88a9eb5b75b0b3ac227a23e08c9
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