|
@@ -109,10 +109,14 @@ static void hpfs_write_failed(struct address_space *mapping, loff_t to)
|
|
|
{
|
|
|
struct inode *inode = mapping->host;
|
|
|
|
|
|
+ hpfs_lock(inode->i_sb);
|
|
|
+
|
|
|
if (to > inode->i_size) {
|
|
|
truncate_pagecache(inode, to, inode->i_size);
|
|
|
hpfs_truncate(inode);
|
|
|
}
|
|
|
+
|
|
|
+ hpfs_unlock(inode->i_sb);
|
|
|
}
|
|
|
|
|
|
static int hpfs_write_begin(struct file *file, struct address_space *mapping,
|