X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fhfsplus%2Fextents.c;h=0022eec63cdacd97c2a438b8d9f623ff6be88dd4;hb=38df92b8cee936334f686c06df0e5fbb92e252df;hp=fec8f61227ffb28792a7b94f30417f003d786882;hpb=5aa37e4f0614e3b1f385426ce1e962e84c275bdf;p=mv-sheeva.git diff --git a/fs/hfsplus/extents.c b/fs/hfsplus/extents.c index fec8f61227f..0022eec63cd 100644 --- a/fs/hfsplus/extents.c +++ b/fs/hfsplus/extents.c @@ -199,6 +199,9 @@ int hfsplus_get_block(struct inode *inode, sector_t iblock, goto done; } + if (inode->i_ino == HFSPLUS_EXT_CNID) + return -EIO; + mutex_lock(&HFSPLUS_I(inode).extents_lock); res = hfsplus_ext_read_extent(inode, ablock); if (!res) {