diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-07-29 12:05:25 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2016-07-29 12:05:25 +0200 |
commit | 30c17ebfb2a11468fe825de19afa3934ee98bfd2 (patch) | |
tree | 231bafeafebab56786642d36526782dbe42f49e4 /mm/mm_init.c | |
parent | qstr: constify instances in overlayfs (diff) | |
download | linux-30c17ebfb2a11468fe825de19afa3934ee98bfd2.tar.xz linux-30c17ebfb2a11468fe825de19afa3934ee98bfd2.zip |
ovl: simplify empty checking
The empty checking logic is duplicated in ovl_check_empty_and_clear() and
ovl_remove_and_whiteout(), except the condition for clearing whiteouts is
different:
ovl_check_empty_and_clear() checked for being upper
ovl_remove_and_whiteout() checked for merge OR lower
Move the intersection of those checks (upper AND merge) into
ovl_check_empty_and_clear() and simplify ovl_remove_and_whiteout().
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions