lkml.org 
[lkml]   [2003]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] tmpfs 6/7 write i_size_write
mm/shmem.c was converted to i_size_read in -test1, and the remaining
references to a file's naked i_size are safely protected by i_sem;
but surely shmem_file_write must use i_size_write to update i_size.

--- tmpfs5/mm/shmem.c 2003-10-15 15:39:14.391867448 +0100
+++ tmpfs6/mm/shmem.c 2003-10-15 15:39:25.386196056 +0100
@@ -1239,7 +1239,7 @@
pos += bytes;
buf += bytes;
if (pos > inode->i_size)
- inode->i_size = pos;
+ i_size_write(inode, pos);

flush_dcache_page(page);
set_page_dirty(page);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.153 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site