Searched hist:"7 dd29d8d865efdb00c0542a5d2c87af8c52ea6c7" (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/fs/hpfs/ |
H A D | buffer.c | diff 7dd29d8d865efdb00c0542a5d2c87af8c52ea6c7 Sun May 08 13:42:54 CDT 2011 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> HPFS: Introduce a global mutex and lock it on every callback from VFS.
Introduce a global mutex and lock it on every callback from VFS.
Performance doesn't matter, reviewing the whole code for locking correctness would be too complicated, so simply lock it all.
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
H A D | file.c | diff 7dd29d8d865efdb00c0542a5d2c87af8c52ea6c7 Sun May 08 13:42:54 CDT 2011 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> HPFS: Introduce a global mutex and lock it on every callback from VFS.
Introduce a global mutex and lock it on every callback from VFS.
Performance doesn't matter, reviewing the whole code for locking correctness would be too complicated, so simply lock it all.
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
H A D | namei.c | diff b6853f78e763d42c7a158d8de3549c9827c604ab Thu Feb 25 11:17:38 CST 2016 Mikulas Patocka <mikulas@twibright.com> hpfs: don't truncate the file when delete fails
The delete opration can allocate additional space on the HPFS filesystem due to btree split. The HPFS driver checks in advance if there is available space, so that it won't corrupt the btree if we run out of space during splitting.
If there is not enough available space, the HPFS driver attempted to truncate the file, but this results in a deadlock since the commit 7dd29d8d865efdb00c0542a5d2c87af8c52ea6c7 ("HPFS: Introduce a global mutex and lock it on every callback from VFS").
This patch removes the code that tries to truncate the file and -ENOSPC is returned instead. If the user hits -ENOSPC on delete, he should try to delete other files (that are stored in a leaf btree node), so that the delete operation will make some space for deleting the file stored in non-leaf btree node.
Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> Cc: stable@vger.kernel.org # 2.6.39+ Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|
H A D | hpfs_fn.h | diff 7dd29d8d865efdb00c0542a5d2c87af8c52ea6c7 Sun May 08 13:42:54 CDT 2011 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> HPFS: Introduce a global mutex and lock it on every callback from VFS.
Introduce a global mutex and lock it on every callback from VFS.
Performance doesn't matter, reviewing the whole code for locking correctness would be too complicated, so simply lock it all.
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
H A D | super.c | diff 7dd29d8d865efdb00c0542a5d2c87af8c52ea6c7 Sun May 08 13:42:54 CDT 2011 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> HPFS: Introduce a global mutex and lock it on every callback from VFS.
Introduce a global mutex and lock it on every callback from VFS.
Performance doesn't matter, reviewing the whole code for locking correctness would be too complicated, so simply lock it all.
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|