diff options
author | Amon Ott <ao@m-privacy.de> | 2012-01-23 12:25:23 -0500 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-03-22 11:47:45 -0400 |
commit | a661fc561190c0ee2d7cfabcfa92204e2b3aa349 (patch) | |
tree | 792088d4d245645d5c91fbb97fd4ee2a43188bd1 /fs/ceph/super.h | |
parent | 1ce208a6ce030ea6ccd4b13c8cec0a84c0c7a1e9 (diff) |
ceph: use 2 instead of 1 as fallback for 32-bit inode number
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>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | 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 1421f3d875a2..18d8a866a07b 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h | |||
@@ -367,7 +367,7 @@ static inline u32 ceph_ino_to_ino32(__u64 vino) | |||
367 | u32 ino = vino & 0xffffffff; | 367 | u32 ino = vino & 0xffffffff; |
368 | ino ^= vino >> 32; | 368 | ino ^= vino >> 32; |
369 | if (!ino) | 369 | if (!ino) |
370 | ino = 1; | 370 | ino = 2; |
371 | return ino; | 371 | return ino; |
372 | } | 372 | } |
373 | 373 | ||