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>
Wed, 30 Mar 2011 23:21:17 +0000 (19:21 -0400)
commit2ed9d50f0f3f4fef32987c8488751ebdcc5e3f4c
tree545f16099665c581ee54028847440e5176c56870
parent6a199e1e5d644eb442206ef144beec979399dc35
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