We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81db4db commit bbd465dCopy full SHA for bbd465d
fs/hpfs/file.c
@@ -109,10 +109,14 @@ static void hpfs_write_failed(struct address_space *mapping, loff_t to)
109
{
110
struct inode *inode = mapping->host;
111
112
+ hpfs_lock(inode->i_sb);
113
+
114
if (to > inode->i_size) {
115
truncate_pagecache(inode, to, inode->i_size);
116
hpfs_truncate(inode);
117
}
118
119
+ hpfs_unlock(inode->i_sb);
120
121
122
static int hpfs_write_begin(struct file *file, struct address_space *mapping,
0 commit comments