aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap_xip.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/filemap_xip.c')
-rw-r--r--mm/filemap_xip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c
index a912da6ddfd4..28fe26b64f8a 100644
--- a/mm/filemap_xip.c
+++ b/mm/filemap_xip.c
@@ -404,8 +404,6 @@ xip_file_write(struct file *filp, const char __user *buf, size_t len,
404 loff_t pos; 404 loff_t pos;
405 ssize_t ret; 405 ssize_t ret;
406 406
407 sb_start_write(inode->i_sb);
408
409 mutex_lock(&inode->i_mutex); 407 mutex_lock(&inode->i_mutex);
410 408
411 if (!access_ok(VERIFY_READ, buf, len)) { 409 if (!access_ok(VERIFY_READ, buf, len)) {
@@ -439,7 +437,6 @@ xip_file_write(struct file *filp, const char __user *buf, size_t len,
439 current->backing_dev_info = NULL; 437 current->backing_dev_info = NULL;
440 out_up: 438 out_up:
441 mutex_unlock(&inode->i_mutex); 439 mutex_unlock(&inode->i_mutex);
442 sb_end_write(inode->i_sb);
443 return ret; 440 return ret;
444} 441}
445EXPORT_SYMBOL_GPL(xip_file_write); 442EXPORT_SYMBOL_GPL(xip_file_write);