projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c24a0fd
)
f2fs: move i_size_write in f2fs_write_end
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 7 Jul 2016 17:06:23 +0000
(10:06 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 8 Jul 2016 17:33:35 +0000
(10:33 -0700)
We don't need to do i_size_write under page lock.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index b6fd5bd05e41bd91f706dedb792d71e05c69939f..20b30162e7b4f372b7cedc4d93b0175395094479 100644
(file)
--- a/
fs/f2fs/data.c
+++ b/
fs/f2fs/data.c
@@
-1685,11
+1685,11
@@
static int f2fs_write_end(struct file *file,
trace_f2fs_write_end(inode, pos, len, copied);
set_page_dirty(page);
+ f2fs_put_page(page, 1);
if (pos + copied > i_size_read(inode))
f2fs_i_size_write(inode, pos + copied);
- f2fs_put_page(page, 1);
f2fs_update_time(F2FS_I_SB(inode), REQ_TIME);
return copied;
}