Commit 1b223f7
Andreas Gruenbacher
gfs2: Eliminate ip->i_gh
Now that gfs2_file_buffered_write is the only remaining user of
ip->i_gh, we can move the glock holder to the stack (or rather, use the
one we already have on the stack); there is no need for keeping the
holder in the inode anymore.
This is slightly complicated by the fact that we're using ip->i_gh for
the statfs inode in gfs2_file_buffered_write as well. Writing to the
statfs inode isn't very common, so allocate the statfs holder
dynamically when needed.
Signed-off-by: Andreas Gruenbacher <[email protected]>1 parent b924bda commit 1b223f7
2 files changed
+22
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
880 | 882 | | |
881 | 883 | | |
882 | 884 | | |
883 | 885 | | |
884 | 886 | | |
| 887 | + | |
885 | 888 | | |
886 | 889 | | |
887 | | - | |
888 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
889 | 898 | | |
890 | 899 | | |
891 | 900 | | |
892 | 901 | | |
893 | 902 | | |
894 | 903 | | |
895 | 904 | | |
896 | | - | |
| 905 | + | |
897 | 906 | | |
898 | 907 | | |
899 | 908 | | |
| |||
904 | 913 | | |
905 | 914 | | |
906 | 915 | | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
| 916 | + | |
| 917 | + | |
912 | 918 | | |
913 | 919 | | |
914 | | - | |
| 920 | + | |
915 | 921 | | |
916 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
917 | 925 | | |
918 | 926 | | |
919 | 927 | | |
| |||
968 | 976 | | |
969 | 977 | | |
970 | 978 | | |
971 | | - | |
| 979 | + | |
972 | 980 | | |
973 | 981 | | |
974 | 982 | | |
| |||
989 | 997 | | |
990 | 998 | | |
991 | 999 | | |
992 | | - | |
| 1000 | + | |
993 | 1001 | | |
994 | 1002 | | |
995 | 1003 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | | - | |
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
| |||
0 commit comments