summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorAmon Ott <ao@m-privacy.de>2012-01-23 09:25:23 -0800
committerAlex Elder <elder@dreamhost.com>2012-03-22 10:47:45 -0500
commita661fc561190c0ee2d7cfabcfa92204e2b3aa349 (patch)
tree792088d4d245645d5c91fbb97fd4ee2a43188bd1 /fs/ceph
parent1ce208a6ce030ea6ccd4b13c8cec0a84c0c7a1e9 (diff)
downloadlinux-3.10-a661fc561190c0ee2d7cfabcfa92204e2b3aa349.tar.gz
linux-3.10-a661fc561190c0ee2d7cfabcfa92204e2b3aa349.tar.bz2
linux-3.10-a661fc561190c0ee2d7cfabcfa92204e2b3aa349.zip
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')
-rw-r--r--fs/ceph/super.h2
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;
}