ceph: fix atomic64_t initialization on ia64
PATCH 1/1 ceph: fix atomic64_t initialization on ia64
bdi_seq is an atomic_long_t but we're using ATOMIC_INIT, which causes build failures on ia64. This patch fixes it to use ATOMIC_LONG_INIT.
Signed-off-by Jeff Mahoney <[email protected]>
--- fs/ceph/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ceph/super.c +1 -1
@@ -926,7 +926,7 @@ static int ceph_compare_super(struct sup/* * construct our own bdi so we can control readahead, etc. */ -static atomic_long_t bdi_seq =ATOMIC_INIT (0 ); +static atomic_long_t bdi_seq =ATOMIC_LONG_INIT (0 );static int ceph_register_bdi (struct super_block *sb,struct ceph_client *client) {
Signature · 2 lines
Jeff Mahoney SUSE Labs
Thanks, Jeff. I'll send this to Linus shortly with the other pending Ceph stuff.
sage
Quoted 28 lines · Jeff Mahoney
bdi_seqis anatomic_long_tbut we're usingATOMIC_INIT, which causes build failures on ia64. This patch fixes it to useATOMIC_LONG_INIT.Signed-off-by Jeff Mahoney <[email protected]>--- fs/ceph/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/ceph/super.c +1
-1@@ -926,7 +926,7 @@ static int ceph_compare_super(struct sup/* * construct our own bdi so we can control readahead, etc. */ -static atomic_long_t bdi_seq =ATOMIC_INIT (0 ); +static atomic_long_t bdi_seq =ATOMIC_LONG_INIT (0 );static int ceph_register_bdi (struct super_block *sb,struct ceph_client *client) {Signature · 6 lines
Jeff Mahoney SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html