WSL2-Linux-Kernel/fs/udf
Jan Kara b07ef35244 udf: Release preallocation on last writeable close
Commit 6fb1ca92a6 "udf: Fix race between write(2) and close(2)"
changed the condition when preallocation is released. The idea was that
we don't want to release the preallocation for an inode on close when
there are other writeable file descriptors for the inode. However the
condition was written in the opposite way so we released preallocation
only if there were other writeable file descriptors. Fix the problem by
changing the condition properly.

CC: stable@vger.kernel.org
Fixes: 6fb1ca92a6
Reported-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
2015-01-28 09:00:40 +01:00
..
Kconfig
Makefile
balloc.c
dir.c udf: Reduce repeated dereferences 2014-12-21 22:42:37 +01:00
directory.c
ecma_167.h
file.c udf: Release preallocation on last writeable close 2015-01-28 09:00:40 +01:00
ialloc.c udf: saner calling conventions for udf_new_inode() 2014-09-04 21:37:41 +02:00
inode.c udf: Verify i_size when loading inode 2014-12-19 13:13:05 +01:00
lowlevel.c udf: use linux/uaccess.h 2014-07-15 22:40:23 +02:00
misc.c
namei.c udf: Reduce repeated dereferences 2014-12-21 22:42:37 +01:00
osta_udf.h
partition.c
super.c udf: One function call less in udf_fill_super() after error detection 2014-11-19 21:56:06 +01:00
symlink.c udf: Check component length before reading it 2014-12-21 22:42:19 +01:00
truncate.c udf: Do not decrement i_blocks when freeing indirect extent block 2012-07-09 13:24:21 +02:00
udf_i.h udf: add extent cache support in case of file reading 2013-01-22 10:48:31 +01:00
udf_sb.h udf: Fortify LVID loading 2013-09-24 11:23:33 +02:00
udfdecl.h udf: Check path length when reading symlink 2014-12-19 14:12:08 +01:00
udfend.h
udftime.c udf: remove redundant sys_tz declaration 2014-09-29 13:45:12 +02:00
unicode.c udf: Check path length when reading symlink 2014-12-19 14:12:08 +01:00