indirect.c (16b1f05d7f5ab4ce570963aca5f3b2b5d21822fa) indirect.c (a6cbcd4a4a85e2fdb0b3344b88df2e8b3d526b9e)
1/*
2 * linux/fs/ext4/indirect.c
3 *
4 * from
5 *
6 * linux/fs/ext4/inode.c
7 *
8 * Copyright (C) 1992, 1993, 1994, 1995

--- 633 unchanged lines hidden (view full) ---

642 struct iov_iter *iter, loff_t offset)
643{
644 struct file *file = iocb->ki_filp;
645 struct inode *inode = file->f_mapping->host;
646 struct ext4_inode_info *ei = EXT4_I(inode);
647 handle_t *handle;
648 ssize_t ret;
649 int orphan = 0;
1/*
2 * linux/fs/ext4/indirect.c
3 *
4 * from
5 *
6 * linux/fs/ext4/inode.c
7 *
8 * Copyright (C) 1992, 1993, 1994, 1995

--- 633 unchanged lines hidden (view full) ---

642 struct iov_iter *iter, loff_t offset)
643{
644 struct file *file = iocb->ki_filp;
645 struct inode *inode = file->f_mapping->host;
646 struct ext4_inode_info *ei = EXT4_I(inode);
647 handle_t *handle;
648 ssize_t ret;
649 int orphan = 0;
650 size_t count = iov_length(iter->iov, iter->nr_segs);
650 size_t count = iov_iter_count(iter);
651 int retries = 0;
652
653 if (rw == WRITE) {
654 loff_t final_size = offset + count;
655
656 if (final_size > inode->i_size) {
657 /* Credits for sb + inode write */
658 handle = ext4_journal_start(inode, EXT4_HT_INODE, 2);

--- 720 unchanged lines hidden ---
651 int retries = 0;
652
653 if (rw == WRITE) {
654 loff_t final_size = offset + count;
655
656 if (final_size > inode->i_size) {
657 /* Credits for sb + inode write */
658 handle = ext4_journal_start(inode, EXT4_HT_INODE, 2);

--- 720 unchanged lines hidden ---