From: Mark Fasheh Date: Thu, 1 Mar 2007 19:01:55 +0000 (-0800) Subject: [PATCH] Turn do_sync_file_range() into do_sync_mapping_range() X-Git-Tag: v2.6.22-rc1~1124^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b04aa3a64f854244bc40a6f528176ed50b5c4f6;p=pandora-kernel.git [PATCH] Turn do_sync_file_range() into do_sync_mapping_range() do_sync_file_range() accepts a file * from which it takes an address_space to sync. Abstract out the bulk of the function into do_sync_mapping_range() which takes the address_space directly. This way callers who want to sync an address_space directly can take advantage of the functionality provided. do_sync_file_range() is preserved as a small wrapper around do_sync_mapping_range(). Ocfs2 in particular would like to use this to initiate a sync of a specific inode range during truncate, where a file * may not be available. Signed-off-by: Mark Fasheh Cc: Christoph Hellwig Signed-off-by: Andrew Morton --- Reading git-diff-tree failed