Lachlan McIlroy d1afb678ce [XFS] Fixed a few bugs in xfs_buf_associate_memory()
- calculation of 'page_count' was incorrect as it did not
  consider the offset of 'mem' into the first page. The
  logic to bump 'page_count' didn't work if 'len' was <=
  PAGE_CACHE_SIZE (ie offset = 3k, len = 2k).
- setting b_buffer_length to 'len' is incorrect if 'offset'
  is > 0. Set it to the total length of the buffer.
- I suspect that passing a non-aligned address into
  mem_to_page() for the first page may have been causing
  issues - don't know but just tidy up that code anyway.

SGI-PV: 971596
SGI-Modid: xfs-linux-melb:xfs-kern:30143a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
2007-12-10 13:46:20 +11:00
..
2007-10-15 16:50:26 +10:00
2006-01-09 20:48:03 +01:00
2007-10-16 12:17:27 +10:00
2007-10-15 16:50:50 +10:00
2007-07-14 15:28:50 +10:00
2007-10-16 11:40:24 +10:00
2007-07-14 15:36:43 +10:00
2007-07-14 15:36:43 +10:00
2007-07-14 15:36:53 +10:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2007-10-15 16:49:49 +10:00
2007-10-19 18:02:55 +10:00
2007-10-16 12:18:09 +10:00
2007-10-16 12:17:27 +10:00
2007-10-16 12:17:27 +10:00
2007-10-16 12:20:54 +10:00
2007-10-16 12:20:54 +10:00
2007-10-16 12:18:09 +10:00
2007-10-16 12:18:09 +10:00
2007-10-16 12:17:27 +10:00
2007-07-14 15:28:50 +10:00
2007-10-15 16:49:49 +10:00
2007-10-19 18:02:55 +10:00
2007-10-19 18:02:55 +10:00
2007-10-19 18:02:55 +10:00
2007-10-19 18:02:55 +10:00
2007-07-14 15:40:53 +10:00