Jan Kara
bcf62ab64d
xfs: Fix overallocation in xfs_buf_allocate_memory()
...
Commit de1cbee which removed b_file_offset in favor of b_bn introduced a bug
causing xfs_buf_allocate_memory() to overestimate the number of necessary
pages. The problem is that xfs_buf_alloc() sets b_bn to -1 and thus effectively
every buffer is straddling a page boundary which causes
xfs_buf_allocate_memory() to allocate two pages and use vmalloc() for access
which is unnecessary.
Dave says xfs_buf_alloc() doesn't need to set b_bn to -1 anymore since the
buffer is inserted into the cache only after being fully initialized now.
So just make xfs_buf_alloc() fill in proper block number from the beginning.
CC: David Chinner <dchinner@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
2012-06-21 13:38:25 -05:00
..
2012-05-29 23:28:32 -04:00
2012-05-29 23:28:32 -04:00
2012-05-14 16:20:59 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2011-12-16 15:17:42 -06:00
2011-08-01 02:35:04 -04:00
2012-05-14 16:20:55 -05:00
2012-05-14 16:21:00 -05:00
2012-06-21 12:32:43 -05:00
2012-05-14 16:20:55 -05:00
2012-06-14 12:28:22 -05:00
2012-03-13 16:30:49 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:58 -05:00
2012-05-14 16:20:54 -05:00
2012-06-14 12:28:24 -05:00
2012-05-14 16:20:57 -05:00
2012-05-14 16:20:54 -05:00
2011-07-25 15:03:13 -05:00
2012-05-14 16:20:54 -05:00
2012-06-21 13:38:25 -05:00
2012-05-14 16:21:03 -05:00
2012-05-14 16:20:54 -05:00
2011-07-13 13:43:50 +02:00
2012-05-14 16:21:00 -05:00
2012-06-14 12:28:26 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:54 -05:00
2011-07-13 13:43:48 +02:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:54 -05:00
2011-07-13 13:43:48 +02:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2011-07-13 13:43:48 +02:00
2012-05-14 16:20:56 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:31 -05:00
2012-05-14 16:20:54 -05:00
2012-05-29 23:28:33 -04:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:04 -05:00
2012-05-14 16:21:04 -05:00
2012-05-14 16:20:54 -05:00
2012-06-14 12:28:25 -05:00
2011-10-11 21:15:06 -05:00
2012-01-17 15:08:53 -06:00
2011-07-08 11:32:51 -05:00
2012-05-14 16:21:03 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:21:00 -05:00
2012-05-21 10:45:44 -05:00
2012-06-21 10:53:43 -05:00
2012-05-14 16:20:33 -05:00
2012-06-14 12:28:24 -05:00
2012-05-14 16:20:58 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-06-14 12:28:24 -05:00
2012-05-14 16:21:00 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2011-10-11 11:02:49 -05:00
2012-05-14 16:21:00 -05:00
2012-05-29 23:28:32 -04:00
2012-05-14 16:21:03 -05:00
2012-05-29 23:28:32 -04:00
2012-05-14 16:20:26 -05:00
2012-05-14 16:20:54 -05:00
2011-10-31 17:30:54 -07:00
2012-06-14 12:28:22 -05:00
2012-06-14 12:28:24 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:54 -05:00
2012-06-14 12:28:24 -05:00
2012-03-14 12:06:32 -05:00
2012-03-14 11:09:06 -05:00
2012-02-03 11:32:20 -06:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:20:58 -05:00
2011-07-25 15:03:13 -05:00
2012-02-02 17:08:04 -06:00
2012-03-14 11:09:06 -05:00
2012-03-14 11:09:06 -05:00
2012-05-28 09:54:45 -07:00
2012-03-14 12:06:32 -05:00
2012-05-15 14:35:43 -05:00
2012-03-13 17:01:15 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2012-05-14 16:21:00 -05:00
2012-05-21 10:45:44 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:03 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2012-05-14 16:20:33 -05:00
2012-05-29 23:28:32 -04:00
2012-05-29 23:28:32 -04:00
2012-05-14 16:20:54 -05:00
2012-05-14 16:21:00 -05:00
2012-01-03 22:55:00 -05:00
2012-03-15 13:40:16 -05:00
2012-06-14 12:28:24 -05:00
2012-03-15 13:40:16 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 13:57:55 -05:00