android_kernel_xiaomi_sm8350/fs/hfsplus
Peter Wainwright 94c1d31845 [PATCH] Fix HFS+ to free up the space when a file is deleted.
fsck_hfs reveals lots of temporary files accumulating in the hidden
directory "\000\000\000HFS+ Private Data".  According to the HFS+
documentation these are files which are unlinked while in use.  However,
there may be a bug in the Linux hfsplus implementation which causes this to
happen even when the files are not in use.  It looks like the "opencnt"
field is never initialized as (I think) it should be in hfsplus_read_inode.
 This means that a file can appear to be still in use when in fact it has
been closed.  This patch seems to fix it for me.

Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-26 10:39:43 -07:00
..
bfind.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bitmap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bnode.c [PATCH] hfs: remove debug code 2005-09-07 16:57:50 -07:00
brec.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
btree.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
catalog.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dir.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
extents.c [PATCH] hfs: don't dirty unchanged inode 2005-08-01 21:38:00 -07:00
hfsplus_fs.h [PATCH] hfs: show_options support 2005-09-07 16:57:50 -07:00
hfsplus_raw.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inode.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ioctl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
options.c [PATCH] hfs: show_options support 2005-09-07 16:57:50 -07:00
part_tbl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
super.c [PATCH] Fix HFS+ to free up the space when a file is deleted. 2005-10-26 10:39:43 -07:00
tables.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
unicode.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
wrapper.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00