]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] hypfs: inode corruption due to missing locking
authorMichael Holzheu <holzheu@de.ibm.com>
Wed, 22 Aug 2007 11:51:43 +0000 (13:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 22 Aug 2007 11:51:49 +0000 (13:51 +0200)
commit794b3dff166989aa46c5059b1058c0101f148239
tree6a70d404272adb8dcdc48f3323f3faa397be9026
parent3fcb92401319e5e85d449b3128cf126f564c5f27
[S390] hypfs: inode corruption due to missing locking

hypfs removes the whole hypfs directory tree and creates a new one, when a
process triggers an update by writing to the "update" attribute. When removing
and creating files, it is necessary to lock the inode of the parent directory
where the files live. Currently hypfs does not lock the parent inode, which
can lead to inode corruption. This patch:
 * Introduces correct locking
 * Fixes i_nlink reference counting for inodes, when creating directories
 * Adds info printk, when hypfs filesystem has been mounted

Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/hypfs/inode.c