[PATCH 13/20] Re: [2.6-BK-URL] NTFS 2.1.17 release

From: Anton Altaparmakov
Date: Mon Aug 23 2004 - 05:56:58 EST


This is patch 13/20 in the series. It contains the following ChangeSet:

<aia21@xxxxxxxxxx> (04/07/30 1.1816)
NTFS: Fix compilation with gcc-2.95 in attrib.c::ntfs_find_vcn(). (Adrian Bunk)

Signed-off-by: Anton Altaparmakov <aia21@xxxxxxxxxx>
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/, http://www-stu.christs.cam.ac.uk/~aia21/

===================================================================

diff -Nru a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c
--- a/fs/ntfs/attrib.c 2004-08-18 20:50:27 +01:00
+++ b/fs/ntfs/attrib.c 2004-08-18 20:50:27 +01:00
@@ -1113,15 +1113,11 @@
}
rl++;
}
- switch (rl->lcn) {
- case (LCN)LCN_RL_NOT_MAPPED:
- break;
- case (LCN)LCN_ENOENT:
- err = -ENOENT;
- break;
- default:
- err = -EIO;
- break;
+ if (likely(rl->lcn != (LCN)LCN_RL_NOT_MAPPED)) {
+ if (likely(rl->lcn == (LCN)LCN_ENOENT))
+ err = -ENOENT;
+ else
+ err = -EIO;
}
}
if (!need_write)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/