summaryrefslogtreecommitdiffstats
path: root/fs/ext2/xip.c
diff options
context:
space:
mode:
authorRoland Dreier2005-07-28 04:12:56 +0200
committerRoland Dreier2005-07-28 04:12:56 +0200
commit2868bd281fef21d1e73d6b7648a41efc3d75f10c (patch)
tree0ad821cfcc9e3f9e8b662d026bec6bb6d4ce69ac /fs/ext2/xip.c
parent[IB/mthca]: Use io_remap_pfn_range for PCI space (diff)
parent[PATCH] new alpha syscalls (diff)
downloadkernel-qcow2-linux-2868bd281fef21d1e73d6b7648a41efc3d75f10c.tar.gz
kernel-qcow2-linux-2868bd281fef21d1e73d6b7648a41efc3d75f10c.tar.xz
kernel-qcow2-linux-2868bd281fef21d1e73d6b7648a41efc3d75f10c.zip
Merge /scratch/Ksrc/linux-git/
Diffstat (limited to 'fs/ext2/xip.c')
-rw-r--r--fs/ext2/xip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/xip.c b/fs/ext2/xip.c
index 0aa5ac159c09..ca7f00312388 100644
--- a/fs/ext2/xip.c
+++ b/fs/ext2/xip.c
@@ -36,7 +36,7 @@ __ext2_get_sector(struct inode *inode, sector_t offset, int create,
*result = tmp.b_blocknr;
/* did we get a sparse block (hole in the file)? */
- if (!(*result)) {
+ if (!tmp.b_blocknr && !rc) {
BUG_ON(create);
rc = -ENODATA;
}