diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-02-20 22:10:44 -0500 |
---|---|---|
committer | Tao Ma <boyu.mt@taobao.com> | 2011-02-20 22:10:44 -0500 |
commit | ef6b689b63b9f5227ccee6f16dd9ee3faf58a464 (patch) | |
tree | ebe3416fcc221e152f2625e8e8794e92e3d8c979 /fs/ocfs2/dlmglue.c | |
parent | 422e6c4bc4b48c15b3cb57a1ca71431abfc57e54 (diff) |
ocfs2: Remove ENTRY from masklog.
ENTRY is used to record the entry of a function.
But because it is added in so many functions, if we enable it,
the system logs get filled up quickly and cause too much I/O.
So actually no one can open it for a production system or even
for a test.
So for mlog_entry_void, we just remove it.
for mlog_entry(...), we replace it with mlog(0,...), and they
will be replace by trace event later.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
-rw-r--r-- | fs/ocfs2/dlmglue.c | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index e8d94d722ecb..c2f3fa1c4722 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c | |||
@@ -397,8 +397,6 @@ static void ocfs2_build_lock_name(enum ocfs2_lock_type type, | |||
397 | { | 397 | { |
398 | int len; | 398 | int len; |
399 | 399 | ||
400 | mlog_entry_void(); | ||
401 | |||
402 | BUG_ON(type >= OCFS2_NUM_LOCK_TYPES); | 400 | BUG_ON(type >= OCFS2_NUM_LOCK_TYPES); |
403 | 401 | ||
404 | len = snprintf(name, OCFS2_LOCK_ID_MAX_LEN, "%c%s%016llx%08x", | 402 | len = snprintf(name, OCFS2_LOCK_ID_MAX_LEN, "%c%s%016llx%08x", |
@@ -729,8 +727,6 @@ void ocfs2_refcount_lock_res_init(struct ocfs2_lock_res *lockres, | |||
729 | 727 | ||
730 | void ocfs2_lock_res_free(struct ocfs2_lock_res *res) | 728 | void ocfs2_lock_res_free(struct ocfs2_lock_res *res) |
731 | { | 729 | { |
732 | mlog_entry_void(); | ||
733 | |||
734 | if (!(res->l_flags & OCFS2_LOCK_INITIALIZED)) | 730 | if (!(res->l_flags & OCFS2_LOCK_INITIALIZED)) |
735 | return; | 731 | return; |
736 | 732 | ||
@@ -762,8 +758,6 @@ void ocfs2_lock_res_free(struct ocfs2_lock_res *res) | |||
762 | static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres, | 758 | static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres, |
763 | int level) | 759 | int level) |
764 | { | 760 | { |
765 | mlog_entry_void(); | ||
766 | |||
767 | BUG_ON(!lockres); | 761 | BUG_ON(!lockres); |
768 | 762 | ||
769 | switch(level) { | 763 | switch(level) { |
@@ -783,8 +777,6 @@ static inline void ocfs2_inc_holders(struct ocfs2_lock_res *lockres, | |||
783 | static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres, | 777 | static inline void ocfs2_dec_holders(struct ocfs2_lock_res *lockres, |
784 | int level) | 778 | int level) |
785 | { | 779 | { |
786 | mlog_entry_void(); | ||
787 | |||
788 | BUG_ON(!lockres); | 780 | BUG_ON(!lockres); |
789 | 781 | ||
790 | switch(level) { | 782 | switch(level) { |
@@ -846,8 +838,6 @@ static void lockres_clear_flags(struct ocfs2_lock_res *lockres, | |||
846 | 838 | ||
847 | static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) | 839 | static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res *lockres) |
848 | { | 840 | { |
849 | mlog_entry_void(); | ||
850 | |||
851 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); | 841 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); |
852 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); | 842 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); |
853 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BLOCKED)); | 843 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BLOCKED)); |
@@ -866,8 +856,6 @@ static inline void ocfs2_generic_handle_downconvert_action(struct ocfs2_lock_res | |||
866 | 856 | ||
867 | static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) | 857 | static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lockres) |
868 | { | 858 | { |
869 | mlog_entry_void(); | ||
870 | |||
871 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); | 859 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_BUSY)); |
872 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); | 860 | BUG_ON(!(lockres->l_flags & OCFS2_LOCK_ATTACHED)); |
873 | 861 | ||
@@ -895,8 +883,6 @@ static inline void ocfs2_generic_handle_convert_action(struct ocfs2_lock_res *lo | |||
895 | 883 | ||
896 | static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) | 884 | static inline void ocfs2_generic_handle_attach_action(struct ocfs2_lock_res *lockres) |
897 | { | 885 | { |
898 | mlog_entry_void(); | ||
899 | |||
900 | BUG_ON((!(lockres->l_flags & OCFS2_LOCK_BUSY))); | 886 | BUG_ON((!(lockres->l_flags & OCFS2_LOCK_BUSY))); |
901 | BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED); | 887 | BUG_ON(lockres->l_flags & OCFS2_LOCK_ATTACHED); |
902 | 888 | ||
@@ -916,7 +902,6 @@ static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres, | |||
916 | int level) | 902 | int level) |
917 | { | 903 | { |
918 | int needs_downconvert = 0; | 904 | int needs_downconvert = 0; |
919 | mlog_entry_void(); | ||
920 | 905 | ||
921 | assert_spin_locked(&lockres->l_lock); | 906 | assert_spin_locked(&lockres->l_lock); |
922 | 907 | ||
@@ -1151,8 +1136,6 @@ static void ocfs2_unlock_ast(struct ocfs2_dlm_lksb *lksb, int error) | |||
1151 | struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); | 1136 | struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); |
1152 | unsigned long flags; | 1137 | unsigned long flags; |
1153 | 1138 | ||
1154 | mlog_entry_void(); | ||
1155 | |||
1156 | mlog(ML_BASTS, "UNLOCK AST fired for lockres %s, action = %d\n", | 1139 | mlog(ML_BASTS, "UNLOCK AST fired for lockres %s, action = %d\n", |
1157 | lockres->l_name, lockres->l_unlock_action); | 1140 | lockres->l_name, lockres->l_unlock_action); |
1158 | 1141 | ||
@@ -1233,7 +1216,6 @@ static inline void ocfs2_recover_from_dlm_error(struct ocfs2_lock_res *lockres, | |||
1233 | { | 1216 | { |
1234 | unsigned long flags; | 1217 | unsigned long flags; |
1235 | 1218 | ||
1236 | mlog_entry_void(); | ||
1237 | spin_lock_irqsave(&lockres->l_lock, flags); | 1219 | spin_lock_irqsave(&lockres->l_lock, flags); |
1238 | lockres_clear_flags(lockres, OCFS2_LOCK_BUSY); | 1220 | lockres_clear_flags(lockres, OCFS2_LOCK_BUSY); |
1239 | lockres_clear_flags(lockres, OCFS2_LOCK_UPCONVERT_FINISHING); | 1221 | lockres_clear_flags(lockres, OCFS2_LOCK_UPCONVERT_FINISHING); |
@@ -1260,8 +1242,6 @@ static int ocfs2_lock_create(struct ocfs2_super *osb, | |||
1260 | unsigned long flags; | 1242 | unsigned long flags; |
1261 | unsigned int gen; | 1243 | unsigned int gen; |
1262 | 1244 | ||
1263 | mlog_entry_void(); | ||
1264 | |||
1265 | mlog(0, "lock %s, level = %d, flags = %u\n", lockres->l_name, level, | 1245 | mlog(0, "lock %s, level = %d, flags = %u\n", lockres->l_name, level, |
1266 | dlm_flags); | 1246 | dlm_flags); |
1267 | 1247 | ||
@@ -1416,8 +1396,6 @@ static int __ocfs2_cluster_lock(struct ocfs2_super *osb, | |||
1416 | unsigned int gen; | 1396 | unsigned int gen; |
1417 | int noqueue_attempted = 0; | 1397 | int noqueue_attempted = 0; |
1418 | 1398 | ||
1419 | mlog_entry_void(); | ||
1420 | |||
1421 | ocfs2_init_mask_waiter(&mw); | 1399 | ocfs2_init_mask_waiter(&mw); |
1422 | 1400 | ||
1423 | if (lockres->l_ops->flags & LOCK_TYPE_USES_LVB) | 1401 | if (lockres->l_ops->flags & LOCK_TYPE_USES_LVB) |
@@ -1605,7 +1583,6 @@ static void __ocfs2_cluster_unlock(struct ocfs2_super *osb, | |||
1605 | { | 1583 | { |
1606 | unsigned long flags; | 1584 | unsigned long flags; |
1607 | 1585 | ||
1608 | mlog_entry_void(); | ||
1609 | spin_lock_irqsave(&lockres->l_lock, flags); | 1586 | spin_lock_irqsave(&lockres->l_lock, flags); |
1610 | ocfs2_dec_holders(lockres, level); | 1587 | ocfs2_dec_holders(lockres, level); |
1611 | ocfs2_downconvert_on_unlock(osb, lockres); | 1588 | ocfs2_downconvert_on_unlock(osb, lockres); |
@@ -1648,8 +1625,6 @@ int ocfs2_create_new_inode_locks(struct inode *inode) | |||
1648 | BUG_ON(!inode); | 1625 | BUG_ON(!inode); |
1649 | BUG_ON(!ocfs2_inode_is_new(inode)); | 1626 | BUG_ON(!ocfs2_inode_is_new(inode)); |
1650 | 1627 | ||
1651 | mlog_entry_void(); | ||
1652 | |||
1653 | mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); | 1628 | mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); |
1654 | 1629 | ||
1655 | /* NOTE: That we don't increment any of the holder counts, nor | 1630 | /* NOTE: That we don't increment any of the holder counts, nor |
@@ -1695,8 +1670,6 @@ int ocfs2_rw_lock(struct inode *inode, int write) | |||
1695 | 1670 | ||
1696 | BUG_ON(!inode); | 1671 | BUG_ON(!inode); |
1697 | 1672 | ||
1698 | mlog_entry_void(); | ||
1699 | |||
1700 | mlog(0, "inode %llu take %s RW lock\n", | 1673 | mlog(0, "inode %llu take %s RW lock\n", |
1701 | (unsigned long long)OCFS2_I(inode)->ip_blkno, | 1674 | (unsigned long long)OCFS2_I(inode)->ip_blkno, |
1702 | write ? "EXMODE" : "PRMODE"); | 1675 | write ? "EXMODE" : "PRMODE"); |
@@ -1725,8 +1698,6 @@ void ocfs2_rw_unlock(struct inode *inode, int write) | |||
1725 | struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; | 1698 | struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_rw_lockres; |
1726 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 1699 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); |
1727 | 1700 | ||
1728 | mlog_entry_void(); | ||
1729 | |||
1730 | mlog(0, "inode %llu drop %s RW lock\n", | 1701 | mlog(0, "inode %llu drop %s RW lock\n", |
1731 | (unsigned long long)OCFS2_I(inode)->ip_blkno, | 1702 | (unsigned long long)OCFS2_I(inode)->ip_blkno, |
1732 | write ? "EXMODE" : "PRMODE"); | 1703 | write ? "EXMODE" : "PRMODE"); |
@@ -1748,8 +1719,6 @@ int ocfs2_open_lock(struct inode *inode) | |||
1748 | 1719 | ||
1749 | BUG_ON(!inode); | 1720 | BUG_ON(!inode); |
1750 | 1721 | ||
1751 | mlog_entry_void(); | ||
1752 | |||
1753 | mlog(0, "inode %llu take PRMODE open lock\n", | 1722 | mlog(0, "inode %llu take PRMODE open lock\n", |
1754 | (unsigned long long)OCFS2_I(inode)->ip_blkno); | 1723 | (unsigned long long)OCFS2_I(inode)->ip_blkno); |
1755 | 1724 | ||
@@ -1776,8 +1745,6 @@ int ocfs2_try_open_lock(struct inode *inode, int write) | |||
1776 | 1745 | ||
1777 | BUG_ON(!inode); | 1746 | BUG_ON(!inode); |
1778 | 1747 | ||
1779 | mlog_entry_void(); | ||
1780 | |||
1781 | mlog(0, "inode %llu try to take %s open lock\n", | 1748 | mlog(0, "inode %llu try to take %s open lock\n", |
1782 | (unsigned long long)OCFS2_I(inode)->ip_blkno, | 1749 | (unsigned long long)OCFS2_I(inode)->ip_blkno, |
1783 | write ? "EXMODE" : "PRMODE"); | 1750 | write ? "EXMODE" : "PRMODE"); |
@@ -1811,8 +1778,6 @@ void ocfs2_open_unlock(struct inode *inode) | |||
1811 | struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; | 1778 | struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_open_lockres; |
1812 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 1779 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); |
1813 | 1780 | ||
1814 | mlog_entry_void(); | ||
1815 | |||
1816 | mlog(0, "inode %llu drop open lock\n", | 1781 | mlog(0, "inode %llu drop open lock\n", |
1817 | (unsigned long long)OCFS2_I(inode)->ip_blkno); | 1782 | (unsigned long long)OCFS2_I(inode)->ip_blkno); |
1818 | 1783 | ||
@@ -2043,8 +2008,6 @@ static void ocfs2_downconvert_on_unlock(struct ocfs2_super *osb, | |||
2043 | { | 2008 | { |
2044 | int kick = 0; | 2009 | int kick = 0; |
2045 | 2010 | ||
2046 | mlog_entry_void(); | ||
2047 | |||
2048 | /* If we know that another node is waiting on our lock, kick | 2011 | /* If we know that another node is waiting on our lock, kick |
2049 | * the downconvert thread * pre-emptively when we reach a release | 2012 | * the downconvert thread * pre-emptively when we reach a release |
2050 | * condition. */ | 2013 | * condition. */ |
@@ -2095,8 +2058,6 @@ static void __ocfs2_stuff_meta_lvb(struct inode *inode) | |||
2095 | struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; | 2058 | struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; |
2096 | struct ocfs2_meta_lvb *lvb; | 2059 | struct ocfs2_meta_lvb *lvb; |
2097 | 2060 | ||
2098 | mlog_entry_void(); | ||
2099 | |||
2100 | lvb = ocfs2_dlm_lvb(&lockres->l_lksb); | 2061 | lvb = ocfs2_dlm_lvb(&lockres->l_lksb); |
2101 | 2062 | ||
2102 | /* | 2063 | /* |
@@ -2145,8 +2106,6 @@ static void ocfs2_refresh_inode_from_lvb(struct inode *inode) | |||
2145 | struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; | 2106 | struct ocfs2_lock_res *lockres = &oi->ip_inode_lockres; |
2146 | struct ocfs2_meta_lvb *lvb; | 2107 | struct ocfs2_meta_lvb *lvb; |
2147 | 2108 | ||
2148 | mlog_entry_void(); | ||
2149 | |||
2150 | mlog_meta_lvb(0, lockres); | 2109 | mlog_meta_lvb(0, lockres); |
2151 | 2110 | ||
2152 | lvb = ocfs2_dlm_lvb(&lockres->l_lksb); | 2111 | lvb = ocfs2_dlm_lvb(&lockres->l_lksb); |
@@ -2205,8 +2164,6 @@ static int ocfs2_should_refresh_lock_res(struct ocfs2_lock_res *lockres) | |||
2205 | unsigned long flags; | 2164 | unsigned long flags; |
2206 | int status = 0; | 2165 | int status = 0; |
2207 | 2166 | ||
2208 | mlog_entry_void(); | ||
2209 | |||
2210 | refresh_check: | 2167 | refresh_check: |
2211 | spin_lock_irqsave(&lockres->l_lock, flags); | 2168 | spin_lock_irqsave(&lockres->l_lock, flags); |
2212 | if (!(lockres->l_flags & OCFS2_LOCK_NEEDS_REFRESH)) { | 2169 | if (!(lockres->l_flags & OCFS2_LOCK_NEEDS_REFRESH)) { |
@@ -2237,7 +2194,6 @@ static inline void ocfs2_complete_lock_res_refresh(struct ocfs2_lock_res *lockre | |||
2237 | int status) | 2194 | int status) |
2238 | { | 2195 | { |
2239 | unsigned long flags; | 2196 | unsigned long flags; |
2240 | mlog_entry_void(); | ||
2241 | 2197 | ||
2242 | spin_lock_irqsave(&lockres->l_lock, flags); | 2198 | spin_lock_irqsave(&lockres->l_lock, flags); |
2243 | lockres_clear_flags(lockres, OCFS2_LOCK_REFRESHING); | 2199 | lockres_clear_flags(lockres, OCFS2_LOCK_REFRESHING); |
@@ -2260,8 +2216,6 @@ static int ocfs2_inode_lock_update(struct inode *inode, | |||
2260 | struct ocfs2_dinode *fe; | 2216 | struct ocfs2_dinode *fe; |
2261 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 2217 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); |
2262 | 2218 | ||
2263 | mlog_entry_void(); | ||
2264 | |||
2265 | if (ocfs2_mount_local(osb)) | 2219 | if (ocfs2_mount_local(osb)) |
2266 | goto bail; | 2220 | goto bail; |
2267 | 2221 | ||
@@ -2374,8 +2328,6 @@ int ocfs2_inode_lock_full_nested(struct inode *inode, | |||
2374 | 2328 | ||
2375 | BUG_ON(!inode); | 2329 | BUG_ON(!inode); |
2376 | 2330 | ||
2377 | mlog_entry_void(); | ||
2378 | |||
2379 | mlog(0, "inode %llu, take %s META lock\n", | 2331 | mlog(0, "inode %llu, take %s META lock\n", |
2380 | (unsigned long long)OCFS2_I(inode)->ip_blkno, | 2332 | (unsigned long long)OCFS2_I(inode)->ip_blkno, |
2381 | ex ? "EXMODE" : "PRMODE"); | 2333 | ex ? "EXMODE" : "PRMODE"); |
@@ -2517,7 +2469,6 @@ int ocfs2_inode_lock_atime(struct inode *inode, | |||
2517 | { | 2469 | { |
2518 | int ret; | 2470 | int ret; |
2519 | 2471 | ||
2520 | mlog_entry_void(); | ||
2521 | ret = ocfs2_inode_lock(inode, NULL, 0); | 2472 | ret = ocfs2_inode_lock(inode, NULL, 0); |
2522 | if (ret < 0) { | 2473 | if (ret < 0) { |
2523 | mlog_errno(ret); | 2474 | mlog_errno(ret); |
@@ -2556,8 +2507,6 @@ void ocfs2_inode_unlock(struct inode *inode, | |||
2556 | struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; | 2507 | struct ocfs2_lock_res *lockres = &OCFS2_I(inode)->ip_inode_lockres; |
2557 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | 2508 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); |
2558 | 2509 | ||
2559 | mlog_entry_void(); | ||
2560 | |||
2561 | mlog(0, "inode %llu drop %s META lock\n", | 2510 | mlog(0, "inode %llu drop %s META lock\n", |
2562 | (unsigned long long)OCFS2_I(inode)->ip_blkno, | 2511 | (unsigned long long)OCFS2_I(inode)->ip_blkno, |
2563 | ex ? "EXMODE" : "PRMODE"); | 2512 | ex ? "EXMODE" : "PRMODE"); |
@@ -2617,8 +2566,6 @@ int ocfs2_super_lock(struct ocfs2_super *osb, | |||
2617 | int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; | 2566 | int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; |
2618 | struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; | 2567 | struct ocfs2_lock_res *lockres = &osb->osb_super_lockres; |
2619 | 2568 | ||
2620 | mlog_entry_void(); | ||
2621 | |||
2622 | if (ocfs2_is_hard_readonly(osb)) | 2569 | if (ocfs2_is_hard_readonly(osb)) |
2623 | return -EROFS; | 2570 | return -EROFS; |
2624 | 2571 | ||
@@ -3054,8 +3001,6 @@ int ocfs2_dlm_init(struct ocfs2_super *osb) | |||
3054 | int status = 0; | 3001 | int status = 0; |
3055 | struct ocfs2_cluster_connection *conn = NULL; | 3002 | struct ocfs2_cluster_connection *conn = NULL; |
3056 | 3003 | ||
3057 | mlog_entry_void(); | ||
3058 | |||
3059 | if (ocfs2_mount_local(osb)) { | 3004 | if (ocfs2_mount_local(osb)) { |
3060 | osb->node_num = 0; | 3005 | osb->node_num = 0; |
3061 | goto local; | 3006 | goto local; |
@@ -3119,8 +3064,6 @@ bail: | |||
3119 | void ocfs2_dlm_shutdown(struct ocfs2_super *osb, | 3064 | void ocfs2_dlm_shutdown(struct ocfs2_super *osb, |
3120 | int hangup_pending) | 3065 | int hangup_pending) |
3121 | { | 3066 | { |
3122 | mlog_entry_void(); | ||
3123 | |||
3124 | ocfs2_drop_osb_locks(osb); | 3067 | ocfs2_drop_osb_locks(osb); |
3125 | 3068 | ||
3126 | /* | 3069 | /* |
@@ -3284,8 +3227,6 @@ int ocfs2_drop_inode_locks(struct inode *inode) | |||
3284 | { | 3227 | { |
3285 | int status, err; | 3228 | int status, err; |
3286 | 3229 | ||
3287 | mlog_entry_void(); | ||
3288 | |||
3289 | /* No need to call ocfs2_mark_lockres_freeing here - | 3230 | /* No need to call ocfs2_mark_lockres_freeing here - |
3290 | * ocfs2_clear_inode has done it for us. */ | 3231 | * ocfs2_clear_inode has done it for us. */ |
3291 | 3232 | ||
@@ -3352,8 +3293,6 @@ static int ocfs2_downconvert_lock(struct ocfs2_super *osb, | |||
3352 | int ret; | 3293 | int ret; |
3353 | u32 dlm_flags = DLM_LKF_CONVERT; | 3294 | u32 dlm_flags = DLM_LKF_CONVERT; |
3354 | 3295 | ||
3355 | mlog_entry_void(); | ||
3356 | |||
3357 | mlog(ML_BASTS, "lockres %s, level %d => %d\n", lockres->l_name, | 3296 | mlog(ML_BASTS, "lockres %s, level %d => %d\n", lockres->l_name, |
3358 | lockres->l_level, new_level); | 3297 | lockres->l_level, new_level); |
3359 | 3298 | ||
@@ -3385,8 +3324,6 @@ static int ocfs2_prepare_cancel_convert(struct ocfs2_super *osb, | |||
3385 | { | 3324 | { |
3386 | assert_spin_locked(&lockres->l_lock); | 3325 | assert_spin_locked(&lockres->l_lock); |
3387 | 3326 | ||
3388 | mlog_entry_void(); | ||
3389 | |||
3390 | if (lockres->l_unlock_action == OCFS2_UNLOCK_CANCEL_CONVERT) { | 3327 | if (lockres->l_unlock_action == OCFS2_UNLOCK_CANCEL_CONVERT) { |
3391 | /* If we're already trying to cancel a lock conversion | 3328 | /* If we're already trying to cancel a lock conversion |
3392 | * then just drop the spinlock and allow the caller to | 3329 | * then just drop the spinlock and allow the caller to |
@@ -3416,8 +3353,6 @@ static int ocfs2_cancel_convert(struct ocfs2_super *osb, | |||
3416 | { | 3353 | { |
3417 | int ret; | 3354 | int ret; |
3418 | 3355 | ||
3419 | mlog_entry_void(); | ||
3420 | |||
3421 | ret = ocfs2_dlm_unlock(osb->cconn, &lockres->l_lksb, | 3356 | ret = ocfs2_dlm_unlock(osb->cconn, &lockres->l_lksb, |
3422 | DLM_LKF_CANCEL); | 3357 | DLM_LKF_CANCEL); |
3423 | if (ret) { | 3358 | if (ret) { |
@@ -3443,8 +3378,6 @@ static int ocfs2_unblock_lock(struct ocfs2_super *osb, | |||
3443 | int set_lvb = 0; | 3378 | int set_lvb = 0; |
3444 | unsigned int gen; | 3379 | unsigned int gen; |
3445 | 3380 | ||
3446 | mlog_entry_void(); | ||
3447 | |||
3448 | spin_lock_irqsave(&lockres->l_lock, flags); | 3381 | spin_lock_irqsave(&lockres->l_lock, flags); |
3449 | 3382 | ||
3450 | recheck: | 3383 | recheck: |
@@ -3859,8 +3792,6 @@ static void ocfs2_set_qinfo_lvb(struct ocfs2_lock_res *lockres) | |||
3859 | struct mem_dqinfo *info = sb_dqinfo(oinfo->dqi_gi.dqi_sb, | 3792 | struct mem_dqinfo *info = sb_dqinfo(oinfo->dqi_gi.dqi_sb, |
3860 | oinfo->dqi_gi.dqi_type); | 3793 | oinfo->dqi_gi.dqi_type); |
3861 | 3794 | ||
3862 | mlog_entry_void(); | ||
3863 | |||
3864 | lvb = ocfs2_dlm_lvb(&lockres->l_lksb); | 3795 | lvb = ocfs2_dlm_lvb(&lockres->l_lksb); |
3865 | lvb->lvb_version = OCFS2_QINFO_LVB_VERSION; | 3796 | lvb->lvb_version = OCFS2_QINFO_LVB_VERSION; |
3866 | lvb->lvb_bgrace = cpu_to_be32(info->dqi_bgrace); | 3797 | lvb->lvb_bgrace = cpu_to_be32(info->dqi_bgrace); |
@@ -3879,7 +3810,6 @@ void ocfs2_qinfo_unlock(struct ocfs2_mem_dqinfo *oinfo, int ex) | |||
3879 | struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); | 3810 | struct ocfs2_super *osb = OCFS2_SB(oinfo->dqi_gi.dqi_sb); |
3880 | int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; | 3811 | int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; |
3881 | 3812 | ||
3882 | mlog_entry_void(); | ||
3883 | if (!ocfs2_is_hard_readonly(osb) && !ocfs2_mount_local(osb)) | 3813 | if (!ocfs2_is_hard_readonly(osb) && !ocfs2_mount_local(osb)) |
3884 | ocfs2_cluster_unlock(osb, lockres, level); | 3814 | ocfs2_cluster_unlock(osb, lockres, level); |
3885 | mlog_exit_void(); | 3815 | mlog_exit_void(); |
@@ -3937,8 +3867,6 @@ int ocfs2_qinfo_lock(struct ocfs2_mem_dqinfo *oinfo, int ex) | |||
3937 | int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; | 3867 | int level = ex ? DLM_LOCK_EX : DLM_LOCK_PR; |
3938 | int status = 0; | 3868 | int status = 0; |
3939 | 3869 | ||
3940 | mlog_entry_void(); | ||
3941 | |||
3942 | /* On RO devices, locking really isn't needed... */ | 3870 | /* On RO devices, locking really isn't needed... */ |
3943 | if (ocfs2_is_hard_readonly(osb)) { | 3871 | if (ocfs2_is_hard_readonly(osb)) { |
3944 | if (ex) | 3872 | if (ex) |
@@ -4007,8 +3935,6 @@ static void ocfs2_process_blocked_lock(struct ocfs2_super *osb, | |||
4007 | * considered valid until we remove the OCFS2_LOCK_QUEUED | 3935 | * considered valid until we remove the OCFS2_LOCK_QUEUED |
4008 | * flag. */ | 3936 | * flag. */ |
4009 | 3937 | ||
4010 | mlog_entry_void(); | ||
4011 | |||
4012 | BUG_ON(!lockres); | 3938 | BUG_ON(!lockres); |
4013 | BUG_ON(!lockres->l_ops); | 3939 | BUG_ON(!lockres->l_ops); |
4014 | 3940 | ||
@@ -4049,8 +3975,6 @@ unqueue: | |||
4049 | static void ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, | 3975 | static void ocfs2_schedule_blocked_lock(struct ocfs2_super *osb, |
4050 | struct ocfs2_lock_res *lockres) | 3976 | struct ocfs2_lock_res *lockres) |
4051 | { | 3977 | { |
4052 | mlog_entry_void(); | ||
4053 | |||
4054 | assert_spin_locked(&lockres->l_lock); | 3978 | assert_spin_locked(&lockres->l_lock); |
4055 | 3979 | ||
4056 | if (lockres->l_flags & OCFS2_LOCK_FREEING) { | 3980 | if (lockres->l_flags & OCFS2_LOCK_FREEING) { |
@@ -4080,8 +4004,6 @@ static void ocfs2_downconvert_thread_do_work(struct ocfs2_super *osb) | |||
4080 | unsigned long processed; | 4004 | unsigned long processed; |
4081 | struct ocfs2_lock_res *lockres; | 4005 | struct ocfs2_lock_res *lockres; |
4082 | 4006 | ||
4083 | mlog_entry_void(); | ||
4084 | |||
4085 | spin_lock(&osb->dc_task_lock); | 4007 | spin_lock(&osb->dc_task_lock); |
4086 | /* grab this early so we know to try again if a state change and | 4008 | /* grab this early so we know to try again if a state change and |
4087 | * wake happens part-way through our work */ | 4009 | * wake happens part-way through our work */ |