Eric Biggers 84c9c2de06 f2fs: correctly fix the parent inode number during fsync()
fsync() may be called on a deleted file that's still open.  So when
fsync() tries to set the parent inode number when the inode has
LOST_PINO and i_nlink == 1 (to avoid later checkpoints), it needs to
make sure to get the parent directory via a non-deleted alias.

Also remove the unnecessary igrab() and iput(), as the caller already
holds a reference to the inode.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2020-05-11 20:36:46 -07:00
..
2019-05-08 21:23:11 -07:00
2020-04-17 09:17:00 -07:00
2020-05-08 06:55:57 -07:00
2020-03-19 11:41:25 -07:00
2020-05-11 20:36:46 -07:00
2020-05-11 20:36:46 -07:00
2020-04-17 09:17:00 -07:00
2020-05-11 20:36:46 -07:00
2020-05-11 20:36:46 -07:00
2020-01-17 16:48:07 -08:00
2020-05-11 20:36:46 -07:00
2020-04-17 09:17:00 -07:00
2020-05-11 20:36:46 -07:00
2020-03-10 09:18:33 -07:00
2020-04-17 09:17:00 -07:00