diff options
author | Amon Ott <ao@m-privacy.de> | 2012-01-23 09:25:23 -0800 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-03-22 10:47:45 -0500 |
commit | a661fc561190c0ee2d7cfabcfa92204e2b3aa349 (patch) | |
tree | 792088d4d245645d5c91fbb97fd4ee2a43188bd1 /fs | |
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')
-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 1421f3d875a..18d8a866a07 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -367,7 +367,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; } |