* [PATCH] ceph: use 2 instead of 1 as fallback for 32-bit inode number
@ 2012-02-29 3:06 Alex Elder
0 siblings, 0 replies; only message in thread
From: Alex Elder @ 2012-02-29 3:06 UTC (permalink / raw)
To: ceph-devel
The root directory of the Ceph mount has inode number 1, so falling back
to 1 always creates a collision. 2 is unused on my test systems and seems
less likely to collide.
Signed-off-by: Amon Ott <ao@m-privacy.de>
Signed-off-by: Sage Weil <sage@newdream.net>
---
fs/ceph/super.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index edcbf37..5f00e82 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -366,7 +366,7 @@ static inline u32 ceph_ino_to_ino32(__u64 vino)
u32 ino = vino & 0xffffffff;
ino ^= vino >> 32;
if (!ino)
- ino = 1;
+ ino = 2;
return ino;
}
--
1.7.5.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-29 3:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 3:06 [PATCH] ceph: use 2 instead of 1 as fallback for 32-bit inode number Alex Elder
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.