]> Pileus Git - ~andy/linux/blobdiff - fs/ocfs2/aops.c
ARM: 7839/1: entry: fix tracing of ARM-private syscalls
[~andy/linux] / fs / ocfs2 / aops.c
index 94417a85ce6eecce9ce3367365fb2d40581c5a7e..f37d3c0e20535eacce542c7184f48d8b509884a2 100644 (file)
@@ -2044,7 +2044,7 @@ int ocfs2_write_end_nolock(struct address_space *mapping,
 
 out_write_size:
        pos += copied;
-       if (pos > inode->i_size) {
+       if (pos > i_size_read(inode)) {
                i_size_write(inode, pos);
                mark_inode_dirty(inode);
        }