ext4: add mutex_is_locked() assertion to ext4_truncate()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 4 Apr 2013 01:58:52 +0000 (21:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Apr 2013 01:58:52 +0000 (21:58 -0400)
commit19b5ef615787062a87c4ea15fcdb0e256b62ed19
tree4a86242cfd6c9df602ce8ad277495fc6ad190767
parent819c4920b7e60ecfd6f0f61d890af4cdf3873d18
ext4: add mutex_is_locked() assertion to ext4_truncate()

[ Added fixup from Lukáš Czerner which only checks the assertion when
  the inode is not new and is not being freed. ]

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c