summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorJoseph Qi <joseph.qi@huawei.com>2015-09-04 18:43:49 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-04 19:54:41 -0400
commitbf59e6623a3a92a2bf428f2d6592c81aae6317e1 (patch)
treecf42c00032fc5c5cdc847aae464d0f39304ba833 /fs/ocfs2/file.c
parent372a447c4bb8271d128def5f93e3365d5d06b4d8 (diff)
ocfs2: clean up unused local variables in ocfs2_file_write_iter
Since commit 86b9c6f3f891 ("ocfs2: remove filesize checks for sync I/O journal commit") removes filesize checks for sync I/O journal commit, variables old_size and old_clusters are not actually used any more. So clean them up. Signed-off-by: Joseph Qi <joseph.qi@huawei.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 38fc33922832..c4a99fb61c3e 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,
2262 ssize_t written = 0; 2262 ssize_t written = 0;
2263 ssize_t ret; 2263 ssize_t ret;
2264 size_t count = iov_iter_count(from), orig_count; 2264 size_t count = iov_iter_count(from), orig_count;
2265 loff_t old_size;
2266 u32 old_clusters;
2267 struct file *file = iocb->ki_filp; 2265 struct file *file = iocb->ki_filp;
2268 struct inode *inode = file_inode(file); 2266 struct inode *inode = file_inode(file);
2269 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); 2267 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
@@ -2367,13 +2365,6 @@ relock:
2367 ocfs2_iocb_set_unaligned_aio(iocb); 2365 ocfs2_iocb_set_unaligned_aio(iocb);
2368 } 2366 }
2369 2367
2370 /*
2371 * To later detect whether a journal commit for sync writes is
2372 * necessary, we sample i_size, and cluster count here.
2373 */
2374 old_size = i_size_read(inode);
2375 old_clusters = OCFS2_I(inode)->ip_clusters;
2376
2377 /* communicate with ocfs2_dio_end_io */ 2368 /* communicate with ocfs2_dio_end_io */
2378 ocfs2_iocb_set_rw_locked(iocb, rw_level); 2369 ocfs2_iocb_set_rw_locked(iocb, rw_level);
2379 2370