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>
Tue, 31 Jan 2012 04:57:03 +0000 (23:57 -0500)
commite2e1b11964fb2595a31e1d9a793553a2278f0684
tree03e1f3580e47f458283efb7350362bf87e4125af
parent9b282628ed7636faff74c1527e180cb4de6aaa63
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