kernel_optimize_test/fs/overlayfs
Amir Goldstein caf70cb2ba ovl: cleanup orphan index entries
index entry should live only as long as there are upper or lower
hardlinks.

Cleanup orphan index entries on mount and when dropping the last
overlay inode nlink.

When about to cleanup or link up to orphan index and the index inode
nlink > 1, admit that something went wrong and adjust overlay nlink
to index inode nlink - 1 to prevent it from dropping below zero.
This could happen when adding lower hardlinks underneath a mounted
overlay and then trying to unlink them.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-04 22:03:19 +02:00
..
copy_up.c ovl: persistent overlay inode nlink for indexed inodes 2017-07-04 22:03:19 +02:00
dir.c ovl: persistent overlay inode nlink for indexed inodes 2017-07-04 22:03:19 +02:00
inode.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
Kconfig ovl: introduce the inodes index dir feature 2017-07-04 22:03:17 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
overlayfs.h ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
ovl_entry.h ovl: add flag for upper in ovl_entry 2017-07-04 22:03:18 +02:00
readdir.c ovl: cleanup bad and stale index entries on mount 2017-07-04 22:03:17 +02:00
super.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00
util.c ovl: cleanup orphan index entries 2017-07-04 22:03:19 +02:00