Commit 0494f04
xfs: consolidate q_qlock locking in xfs_qm_dqget and xfs_qm_dqget_inode
Move taking q_qlock from the cache lookup / insert helpers into the
main functions and do it just before returning to the caller.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>1 parent 6b6e6e7 commit 0494f04
1 file changed
Lines changed: 9 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | | - | |
830 | 829 | | |
831 | 830 | | |
832 | 831 | | |
833 | 832 | | |
834 | 833 | | |
835 | 834 | | |
836 | | - | |
837 | | - | |
| 835 | + | |
838 | 836 | | |
839 | 837 | | |
840 | 838 | | |
| |||
861 | 859 | | |
862 | 860 | | |
863 | 861 | | |
864 | | - | |
865 | | - | |
866 | 862 | | |
867 | 863 | | |
868 | 864 | | |
| |||
920 | 916 | | |
921 | 917 | | |
922 | 918 | | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
| 919 | + | |
| 920 | + | |
927 | 921 | | |
928 | 922 | | |
929 | 923 | | |
| |||
944 | 938 | | |
945 | 939 | | |
946 | 940 | | |
| 941 | + | |
947 | 942 | | |
| 943 | + | |
948 | 944 | | |
949 | 945 | | |
950 | 946 | | |
| |||
1019 | 1015 | | |
1020 | 1016 | | |
1021 | 1017 | | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
| 1018 | + | |
| 1019 | + | |
1026 | 1020 | | |
1027 | 1021 | | |
1028 | 1022 | | |
| |||
1048 | 1042 | | |
1049 | 1043 | | |
1050 | 1044 | | |
1051 | | - | |
1052 | 1045 | | |
1053 | 1046 | | |
1054 | 1047 | | |
| |||
1074 | 1067 | | |
1075 | 1068 | | |
1076 | 1069 | | |
| 1070 | + | |
1077 | 1071 | | |
| 1072 | + | |
1078 | 1073 | | |
1079 | 1074 | | |
1080 | 1075 | | |
| |||
0 commit comments