diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-07-26 15:06:44 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-26 22:05:48 -0500 |
commit | 34951f5cb72b1e3a89a21581cb21e2d5b6a104a4 (patch) | |
tree | 79e2b762ef32be642c5b032ec5ad06166f2132de /fs/xfs/linux-2.6/xfs_buf.c | |
parent | 1c4f33296e8e79a6bbfffc8457d547ffc31d5dee (diff) | |
download | lwn-34951f5cb72b1e3a89a21581cb21e2d5b6a104a4.tar.gz lwn-34951f5cb72b1e3a89a21581cb21e2d5b6a104a4.zip |
xfs: flag all buffers as metadata
Now that REQ_META bios aren't treated specially in the CFQ I/O schedule
anymore, we can tag all buffers as metadata to make blktrace traces more
meaningful. Note that we use buffers also to zero out partial blocks
in the preallocation / hole punching code, and while they operate on
data blocks the zeros written certainly aren't data. I think this case
is borderline metadata enough to not bother special casing it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index b2b411985591..d1fe74506c4c 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c @@ -1224,6 +1224,9 @@ _xfs_buf_ioapply( rw = READ; } + /* we only use the buffer cache for meta-data */ + rw |= REQ_META; + next_chunk: atomic_inc(&bp->b_io_remaining); nr_pages = BIO_MAX_SECTORS >> (PAGE_SHIFT - BBSHIFT); |