Thread (11 messages) flat view 11 messages, 3 authors, 2007-05-11

Re: [PATCH 3/3] AFS: Implement basic file write support

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-05-09 10:41:35
Also in: linux-fsdevel, lkml

On Wed, 09 May 2007 11:25:47 +0100 David Howells [off-list ref] wrote:
quoted
quoted
+	set_page_dirty(page);
+
+	if (PageDirty(page))
+		_debug("dirtied");
+
+	return 0;
+}
One would normally run mark_inode_dirty() after any i_size_write()?
Not in this case, I assume, because set_page_dirty() ultimately calls
__mark_inode_dirty(), but I could be wrong.
set_page_dirty() will set I_DIRTY_PAGES only.  ie: the inode has dirty
pagecache data.

To tell the VFS that the inode itself is dirty one needs to run
mark_inode_dirty().  Or maybe mark_inode_dirty_sync() but I can never for
the life of me remember what that thing does.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help