inode.c (23e6e1c9b373c164bf25d89c901eed2ac0d898a1) | inode.c (4493895b2bdcca135a8e7c1384deaa35316e8e22) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd. 4 */ 5 6#include <linux/init.h> 7#include <linux/buffer_head.h> 8#include <linux/mpage.h> --- 355 unchanged lines hidden (view full) --- 364} 365 366static void exfat_write_failed(struct address_space *mapping, loff_t to) 367{ 368 struct inode *inode = mapping->host; 369 370 if (to > i_size_read(inode)) { 371 truncate_pagecache(inode, i_size_read(inode)); | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd. 4 */ 5 6#include <linux/init.h> 7#include <linux/buffer_head.h> 8#include <linux/mpage.h> --- 355 unchanged lines hidden (view full) --- 364} 365 366static void exfat_write_failed(struct address_space *mapping, loff_t to) 367{ 368 struct inode *inode = mapping->host; 369 370 if (to > i_size_read(inode)) { 371 truncate_pagecache(inode, i_size_read(inode)); |
372 inode->i_mtime = inode->i_ctime = current_time(inode); |
|
372 exfat_truncate(inode, EXFAT_I(inode)->i_size_aligned); 373 } 374} 375 376static int exfat_write_begin(struct file *file, struct address_space *mapping, 377 loff_t pos, unsigned int len, 378 struct page **pagep, void **fsdata) 379{ --- 265 unchanged lines hidden --- | 373 exfat_truncate(inode, EXFAT_I(inode)->i_size_aligned); 374 } 375} 376 377static int exfat_write_begin(struct file *file, struct address_space *mapping, 378 loff_t pos, unsigned int len, 379 struct page **pagep, void **fsdata) 380{ --- 265 unchanged lines hidden --- |