aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-10-03 14:15:36 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2014-10-08 04:57:07 -0400
commitd29c0afe4db72ceb72149c3894a6079674e9751f (patch)
tree8ee3de0ac0022ac91ed82bf2fef790a723dcd5fa /fs/gfs2
parentd24e0569e046430832d32eb3ea231dc763782e4d (diff)
GFS2: use _RET_IP_ instead of (unsigned long)__builtin_return_address(0)
use macro definition Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/glock.c4
-rw-r--r--fs/gfs2/glops.c2
-rw-r--r--fs/gfs2/trans.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 7f513b1ceb2c..8f0c19d1d943 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -811,7 +811,7 @@ void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
811{ 811{
812 INIT_LIST_HEAD(&gh->gh_list); 812 INIT_LIST_HEAD(&gh->gh_list);
813 gh->gh_gl = gl; 813 gh->gh_gl = gl;
814 gh->gh_ip = (unsigned long)__builtin_return_address(0); 814 gh->gh_ip = _RET_IP_;
815 gh->gh_owner_pid = get_pid(task_pid(current)); 815 gh->gh_owner_pid = get_pid(task_pid(current));
816 gh->gh_state = state; 816 gh->gh_state = state;
817 gh->gh_flags = flags; 817 gh->gh_flags = flags;
@@ -835,7 +835,7 @@ void gfs2_holder_reinit(unsigned int state, unsigned flags, struct gfs2_holder *
835 gh->gh_state = state; 835 gh->gh_state = state;
836 gh->gh_flags = flags; 836 gh->gh_flags = flags;
837 gh->gh_iflags = 0; 837 gh->gh_iflags = 0;
838 gh->gh_ip = (unsigned long)__builtin_return_address(0); 838 gh->gh_ip = _RET_IP_;
839 if (gh->gh_owner_pid) 839 if (gh->gh_owner_pid)
840 put_pid(gh->gh_owner_pid); 840 put_pid(gh->gh_owner_pid);
841 gh->gh_owner_pid = get_pid(task_pid(current)); 841 gh->gh_owner_pid = get_pid(task_pid(current));
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 2ffc67dce87f..1cc0bba6313f 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -93,7 +93,7 @@ static void gfs2_ail_empty_gl(struct gfs2_glock *gl)
93 * tr->alloced is not set since the transaction structure is 93 * tr->alloced is not set since the transaction structure is
94 * on the stack */ 94 * on the stack */
95 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64)); 95 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64));
96 tr.tr_ip = (unsigned long)__builtin_return_address(0); 96 tr.tr_ip = _RET_IP_;
97 sb_start_intwrite(sdp->sd_vfs); 97 sb_start_intwrite(sdp->sd_vfs);
98 if (gfs2_log_reserve(sdp, tr.tr_reserved) < 0) { 98 if (gfs2_log_reserve(sdp, tr.tr_reserved) < 0) {
99 sb_end_intwrite(sdp->sd_vfs); 99 sb_end_intwrite(sdp->sd_vfs);
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c
index 0546ab4e28e8..42bfd3361979 100644
--- a/fs/gfs2/trans.c
+++ b/fs/gfs2/trans.c
@@ -44,7 +44,7 @@ int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks,
44 if (!tr) 44 if (!tr)
45 return -ENOMEM; 45 return -ENOMEM;
46 46
47 tr->tr_ip = (unsigned long)__builtin_return_address(0); 47 tr->tr_ip = _RET_IP_;
48 tr->tr_blocks = blocks; 48 tr->tr_blocks = blocks;
49 tr->tr_revokes = revokes; 49 tr->tr_revokes = revokes;
50 tr->tr_reserved = 1; 50 tr->tr_reserved = 1;