Unionfs: reduce number of whiteouts by deleting all instances of files
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 02:49:29 +0000 (22:49 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 01:04:32 +0000 (20:04 -0500)
commit99422e428dc9de6c0bcf6847ea3bf2f6eb68529f
tree1c878b246fdd306367fe2862db9b346ac460b18b
parent3d8941bec47ead6e676ae0c542e71ad3e6376970
Unionfs: reduce number of whiteouts by deleting all instances of files

Optimize the unlinking of non-dir objects in unionfs by deleting all
possible lower inode objects from all writable lower branches.  This may
consume a bit more processing, but on average reduces overall inode
consumption and further saves a lot by reducing the total number of
whiteouts needed.  We create a whiteout now only if we could not delete all
lower objects, or if one of the lower branches was explicitly marked
read-only.

Signed-off-by: Himanshu Kanda <hkanda@cs.sunysb.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Documentation/filesystems/unionfs/concepts.txt
fs/unionfs/lookup.c
fs/unionfs/unlink.c