hfsplus: free space correcly for files unlinked while open
authorChristoph Hellwig <hch@tuxera.com>
Wed, 27 Oct 2010 11:45:50 +0000 (13:45 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 Oct 2010 11:45:50 +0000 (13:45 +0200)
commit85b8fe8cc47b0dc1068475ba95f29ddff10a8efc
treeffda33b6caa6f32ac226ff49cfd8a18c186b68c1
parente50fb58b5b3548e578d3b74ff15aeb7d9a496839
hfsplus: free space correcly for files unlinked while open

hfsplus_delete_inode only truncates away all block allocations if
i_nlink is zero.  Make sure we properly drop the unlink count even
when doing the rename hack for open but unlinked files.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/dir.c