PMIC:rk818.dtsi: remove rk818_reg_ldo2 aways-on,
[firefly-linux-kernel-4.4.55.git] / fs / buffer.c
index d0b4646dc8c8d9249205a5880f636f23d0602da8..83fedaa53b55c0118f3858d4296de3f3acb7e293 100644 (file)
@@ -2018,6 +2018,7 @@ int generic_write_end(struct file *file, struct address_space *mapping,
                        struct page *page, void *fsdata)
 {
        struct inode *inode = mapping->host;
+       loff_t old_size = inode->i_size;
        int i_size_changed = 0;
 
        copied = block_write_end(file, mapping, pos, len, copied, page, fsdata);
@@ -2037,6 +2038,8 @@ int generic_write_end(struct file *file, struct address_space *mapping,
        unlock_page(page);
        page_cache_release(page);
 
+       if (old_size < pos)
+               pagecache_isize_extended(inode, old_size, pos);
        /*
         * Don't mark the inode dirty under page lock. First, it unnecessarily
         * makes the holding time of page lock longer. Second, it forces lock