* [Ocfs2-devel] Tiny fix to remove dead code
@ 2004-03-19 12:55 John L. Villalovos
2004-03-22 17:00 ` Mark Fasheh
0 siblings, 1 reply; 2+ messages in thread
From: John L. Villalovos @ 2004-03-19 12:55 UTC (permalink / raw)
To: ocfs2-devel
Since this section of code is wrapped in a
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
it seemed like this was redundant.
John
Index: src/file.c
===================================================================
--- src/file.c (revision 791)
+++ src/file.c (working copy)
@@ -1502,11 +1502,7 @@
stat->nlink = inode->i_nlink;
stat->uid = inode->i_uid;
stat->gid = inode->i_gid;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
stat->rdev = inode->i_rdev;
-#else
- stat->rdev = kdev_t_to_nr(inode->i_rdev);
-#endif
stat->atime = inode->i_atime;
stat->mtime = inode->i_mtime;
stat->ctime = inode->i_ctime;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-22 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-19 12:55 [Ocfs2-devel] Tiny fix to remove dead code John L. Villalovos
2004-03-22 17:00 ` Mark Fasheh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.