Unionfs: remove whiteout if regular file also exists
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:10:41 +0000 (00:10 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 31 Jan 2012 05:06:22 +0000 (00:06 -0500)
commit6f1b0a2723e02b4c7df136205ebc807eea136fae
tree543c5dc22a04790ef50f42167d6afc7a462e9633
parentdd04a524c45bce8639ec1f0b2c9081faece4607e
Unionfs: remove whiteout if regular file also exists

We used to return EIO then, but it's safer to cleanup such a situation, if
it occurs, in check_unlink_whiteout, because we know for a fact that we want
to delete a whiteout if one exists.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/whiteout.c