diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2008-04-29 08:11:12 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-04-29 08:11:12 -0400 |
commit | 1a89734d4057066344356e9c7e13b6379497aebe (patch) | |
tree | 7e0466cb367e3eb7aec72bdfd0c03aaa3e22449e /fs/devpts | |
parent | e067ba0078cd6f00eb6c4052fec630b78ebe59de (diff) | |
download | op-kernel-dev-1a89734d4057066344356e9c7e13b6379497aebe.zip op-kernel-dev-1a89734d4057066344356e9c7e13b6379497aebe.tar.gz |
ext4: Return unwritten buffer head when trying to read from prealloc space.
ext4_ext_get_blocks() returns the number of blocks allocated with buffer
head unmapped for a read from prealloc space. This is needed so that
delayed allocation doesn't do block reservation for prealloc space
since the blocks are already reserved on disk. Mark the buffer head
unwritten. Some code paths try to read the block if the buffer_head is
not new and no uptodate. Marking the buffer head unwritten avoids this
reading.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/devpts')
0 files changed, 0 insertions, 0 deletions