Unionfs: reduce number of whiteouts by deleting all instances of files
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 06:25:21 +0000 (02:25 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 06:25:21 +0000 (02:25 -0400)
commite41be1445e6a9f206dddf36262e26f6f90b89da3
tree073a425dd50ab59c4aa49dd5f48b73f7a170bfd9
parent3fec5ea6d0a545ec6118e355cb4f95601212b92b
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