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>
Fri, 12 Aug 2011 02:37:53 +0000 (22:37 -0400)
commited48c58b41b4787478eb76a6176bd05fe2f030f9
tree659fd2d35a264c0930c2f79b80201bb9abf61015
parentaf9d798a842a5976378c86853ac04a09b80d780b
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