diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 38fc339228327bc6ede74a3a283f961165aeb2f7..c4a99fb61c3e4eb01b5d45a242320d054dacb019 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2262,8 +2262,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb, ssize_t written = 0; ssize_t ret; size_t count = iov_iter_count(from), orig_count; - loff_t old_size; - u32 old_clusters; struct file *file = iocb->ki_filp; struct inode *inode = file_inode(file); struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); @@ -2367,13 +2365,6 @@ static ssize_t ocfs2_file_write_iter(struct kiocb *iocb, ocfs2_iocb_set_unaligned_aio(iocb); } - /* - * To later detect whether a journal commit for sync writes is - * necessary, we sample i_size, and cluster count here. - */ - old_size = i_size_read(inode); - old_clusters = OCFS2_I(inode)->ip_clusters; - /* communicate with ocfs2_dio_end_io */ ocfs2_iocb_set_rw_locked(iocb, rw_level);