[PATCH] reiserfs: use mark_inode_dirty instead of reiserfs_update_sd
authorChris Mason <mason@suse.com>
Tue, 13 Sep 2005 08:25:17 +0000 (01:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Sep 2005 15:22:29 +0000 (08:22 -0700)
commit9f03783ce5d851e4b98dfaf3e9eb177870f6c75d
tree6f0cdc9322b723649eebd259954f72556f11439c
parent9f1583339a6f52c0c26441d39a0deff8246800f7
[PATCH] reiserfs: use mark_inode_dirty instead of reiserfs_update_sd

reiserfs should use mark_inode_dirty during reiserfs_file_write and
reiserfs_commit_write.  This makes sure the inode is properly flagged as
dirty, which is used during O_SYNC to decide when to trigger log commits.

This patch also removes the O_SYNC check from reiserfs_commit_write, since
that gets dealt with properly at higher layers once we start using
mark_inode_dirty.

Thanks to Hifumi Hisashi <hifumi.hisashi@lab.ntt.co.jp> for catching this.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/file.c
fs/reiserfs/inode.c