Unionfs: don't create whiteouts on rightmost branch
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 23:34:36 +0000 (18:34 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 23:34:36 +0000 (18:34 -0500)
commit504be039a221b4b493249407e22cbbaac48a98dc
treee05b9a5b4f08d5adc73706011931d0d50911417a
parent643fc32269f727c84a03a76ef7788bdc2b95e8ae
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