]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/fs-writeback.c
fs: pass exact type of data dirties to ->dirty_inode
authorChristoph Hellwig <hch@infradead.org>
Fri, 27 May 2011 10:53:02 +0000 (06:53 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 27 May 2011 11:04:40 +0000 (07:04 -0400)
commitaa38572954ade525817fe88c54faebf85e5a61c0
treeef398ec06c97134592f62a49c99f3f80041b427c
parentd6e9bd256c88ce5f4b668249e363a74f51393daa
fs: pass exact type of data dirties to ->dirty_inode

Tell the filesystem if we just updated timestamp (I_DIRTY_SYNC) or
anything else, so that the filesystem can track internally if it
needs to push out a transaction for fdatasync or not.

This is just the prototype change with no user for it yet.  I plan
to push large XFS changes for the next merge window, and getting
this trivial infrastructure in this window would help a lot to avoid
tree interdependencies.

Also remove incorrect comments that ->dirty_inode can't block.  That
has been changed a long time ago, and many implementations rely on it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
19 files changed:
Documentation/filesystems/Locking
Documentation/filesystems/vfs.txt
fs/btrfs/ctree.h
fs/btrfs/inode.c
fs/ext3/inode.c
fs/ext4/ext4.h
fs/ext4/inode.c
fs/fs-writeback.c
fs/jffs2/fs.c
fs/jffs2/os-linux.h
fs/jfs/inode.c
fs/jfs/jfs_inode.h
fs/nilfs2/inode.c
fs/nilfs2/nilfs.h
fs/reiserfs/super.c
fs/ubifs/super.c
fs/xfs/linux-2.6/xfs_super.c
include/linux/ext3_fs.h
include/linux/fs.h